Development of a Fuzzy Logic-Based Predictive Model for Myocardial Infarction Risk
Abstract
Myocardial infarction (MI), commonly known as a heart attack, is a major cardiovascular condition for which early identification of individuals at increased risk can support timely intervention. This study developed a fuzzy logic-based predictive model for MI risk using clinical and diagnostic variables obtained from patient records at the Obafemi Awolowo University Teaching Hospital Complex (OAUTHC), Ile-Ife. Ten variables were used as inputs to the fuzzy inference system. Triangular membership functions were used to map the input variables to linguistic categories, while a rule-based inference mechanism was employed to classify MI risk as no risk, low risk, moderate risk, or high risk. The model was evaluated using 1,700 records comprising 952 no-risk and 748 risk cases. For binary performance evaluation, the no-risk output was classified as no risk, whereas the low-, moderate-, and high-risk outputs were classified as risk. The model achieved an accuracy of 82.00%, sensitivity of 79.41%, specificity of 84.03%, and F1-score of 79.52%. The corresponding confusion matrix showed 800 true negatives, 152 false positives, 154 false negatives, and 594 true positives. Pearson correlation analysis further indicated that thallium test results had the strongest positive association with MI risk (r = 0.52), while maximum heart rate showed a negative association (r = -0.25); ST depression and ST slope exhibited the strongest correlation among the predictor variables (r = 0.61). The findings demonstrate the potential of a transparent, rule-based fuzzy inference approach for MI risk prediction and highlight the need for further validation on broader, independent clinical datasets.