Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Med., 09 July 2025

Sec. Precision Medicine

Volume 12 - 2025 | https://doi.org/10.3389/fmed.2025.1596335

This article is part of the Research TopicArtificial Intelligence Algorithms and Cardiovascular Disease Risk AssessmentView all 5 articles

Explainable AI-driven intelligent system for precision forecasting in cardiovascular disease


Anas BilalAnas Bilal1Abdulkareem AlzahraniAbdulkareem Alzahrani2Khalid AlmohammadiKhalid Almohammadi3Muhammad SaleemMuhammad Saleem4Muhammad Sajid FarooqMuhammad Sajid Farooq5Raheem Sarwar*Raheem Sarwar6*
  • 1College of Information Science and Technology, Hainan Normal University, Haikou, China
  • 2Department of Computer Science, Faculty of Computing and Information, Al-Baha University, Al-Baha, Saudi Arabia
  • 3Department of Computer Science, Applied College, University of Tabuk, Tabuk, Saudi Arabia
  • 4Department of Computer Science, Air University, Islamabad, Pakistan
  • 5Department of Cyber Security, NASTP Institute of Information Technology, Lahore, Pakistan
  • 6OTEHM, Manchester Metropolitan University, Manchester, United Kingdom

Introduction: Cardiovascular diseases (CVDs) are complex and affect a large part of the world’s population; early accurate and timely prediction is also complicated. Typically, predicting CVDs involves using statistical models and other forms of standard machine learning. Although these methods offer some level of prediction, their black-box nature severely hinders the ability of the healthcare professional to trust and use the predictions. The following are some of the challenges that Explainable Artificial Intelligence (XAI) may solve since it can give an understanding of the decision-making system of AI to build confidence and increase usability.

Methods: This research introduced an intelligent forecasting system for cardiovascular events using XAI and addressed the limitations of traditional methods. This proposed system incorporates advanced machine learning algorithms integrated with XAI to examine a dataset comprising 308,737 patient records with features including age, BMI, blood pressure, cholesterol levels, and lifestyle factors. This dataset was sourced from the Kaggle Cardiovascular Disease dataset.

Results: Incorporating XAI offers an understandable explanation so that the healthcare professional can understand and make the AI-driven prediction trustworthy enough to improve the decision-making of treatment and care delivery for the patients. The simulation results of the proposed system provide better results than those of the previously published research works in terms of 91.94% accuracy and 8.06% miss rate.

Discussion: This proposed system makes it clear that XAI has the potential to significantly improve cardiovascular healthcare by enhancing transparency, reliability, and the quality of patient care.

1 Introduction

In the past decade heart disease or cardiovascular has remained the leading cause of fatalities in the whole world. The computational prediction of cardiovascular diseases is a critical and complex health issue in reality. It impacts the functionality of blood vessels and causes coronary artery infections that incapacitate the body of the patient, more so the adults and the elderly. According to the World Health Organization (WHO), cardiovascular diseases are the leading cause of death with more than 18 million deaths in the world annually (1). The US spends one billion dollars per day on the treatment of heart diseases (2). These heart diseases (stroke, heart attack, hypertension etc.) are the leading cause of death in America. Consequently, early prognosis of heart disease is very crucial in nursing cardiac patients before they develop a heart attack or a stroke (3).

Cardiovascular diseases can be detected via medical tests and Electronic Medical Records (EMRs) extracted from wearable sensors .Identifying useful risk factors for heart diseases from electronic medical tests is challenging as physicians attempt to give efficiency and accuracy in the diagnosis of the patients (4). These EMRs are unstructured and have been growing in size day by day due to the medical tests on the patients. Wearable sensors are also used to record internal and external body signals as cardiovascular checks for heart disease. However, wearable sensor data that aids in predicting heart diseases contains signal artifacts such as missing values and noise that reduce the system performance and yield inaccurate outcomes (5, 6). To address these challenges, artificial intelligence (AI) has become increasingly central to modern healthcare, offering intelligent systems capable of processing large-scale unstructured data with high precision. Advanced models such as fuzzy deep learning architectures, quantum-enhanced networks, and deep convolutional neural networks have demonstrated success in detecting plant diseases, early-stage cancers, diabetic retinopathy, and periodontal conditions (711). These innovations highlight AI’s potential to improve diagnostic accuracy, optimize data interpretation from EMRs and sensors, and support clinical decision-making in cardiovascular care and beyond. Recent studies have demonstrated that exosomal lncRNAs and nanozyme-enhanced amplification techniques offer promising strategies for the diagnosis and treatment of viral myocarditis (12, 13).

Immunomodulatory therapies using engineered extracellular vesicles have also shown potential in targeting multiple pathways involved in cardiac inflammation (14). First of all, integrating wearable sensors and EMRs is a challenging and major approach to managing cardiac patients. Secondly, feature selection of data plays an important role in heart disease prediction, where selecting the most important and useful features from the data is most often difficult. Machine learning models are increasingly being used for cardiac signal analysis and perioperative cognitive disorder prediction, offering improved clinical decision-making tools (1517). On the molecular level, ALKBH5 and LINC00657 have been identified as key regulators in angiogenesis through post-transcriptional and miRNA-mediated pathways (18, 19). Epidemiological analyses employing large datasets and machine learning approaches have revealed associations between metabolic indicators—such as the triglyceride-glucose index and GPER activity and cardiovascular risks in hypertensive populations (20, 21). As such, these diseases are compounded by their multifactorial nature, hence calling for stringent and timely forecasts to enhance early management. Even today, a science such as clinical cardiology using all the modern possibilities in research and technologies still struggles to predict subsequent cardiovascular events. They include the constantly increasing volume of heterogeneous data, variability of patients’ responses, and complex interactions between genes, behavior, and environment that determine CVD risk (22, 23) .Advances in cardio-oncology have also been highlighted, particularly in the context of panvascular medicine and its therapeutic integration (24). Pediatric research points to a growing concern in early-onset cardiac remodeling and rare syndromic cases treated with innovative device interventions (25, 26). Moreover, systemic inflammatory markers and micronutrient levels, such as neutrophil-lymphocyte ratios and vitamin D, have been linked to cardiovascular mortality and disease prevalence (27, 28).

Nowadays, several systems have been proposed in order to predict and diagnose cardiovascular disease using data mining techniques and hybrid models as reviewed next in the related work section (2932). These traditional forecasting models in cardiovascular diseases have been developed based on a statistical approach and other classical machine learning techniques (3335). These methods are mostly based on pattern recognition to make predictions of possible cardiovascular incidents. While they provide a certain level of predictive capability, they tend to operate as “black boxes,” offering little to no insight into how predictions are made (36, 37). This lack of interpretability can cause trust issues with the health care professionals and patients as clinicians need to know why the predictions are made to make an appropriate clinical decision on the patients. Therefore, these conventional models’ inherent opaqueness and non-interpretable nature become a major drawback of their usage in clinical contexts.

Besides, the data used in the conventional models are usually constrained to certain factors while the system requires precise modeling of complicated scenarios. For example, blatant demographic data, and medical history are significant; however, the impact of life conditions, surroundings, and genetic factors cannot be overlooked. The traditional approaches also do not consider the dynamic nature of patient health, where changes in health status and behavior significantly contribute to cardiovascular risk. With this, the traditional models take more of a static position, which can lead to making decisions and providing predictions that are partly accurate and may not be characteristic of the current risks of the patients. Furthermore, many of these models have been developed using small or imbalanced datasets without adequate external validation, raising concerns about their generalizability and robustness across different populations. Such models may overfit the training data and fail to perform well in real-world clinical settings. Additionally, these models often lack mechanisms to incorporate evolving patient data or adapt to changes in patient health over time, limiting their clinical usefulness.

Explainable Artificial Intelligence (XAI) presents the paradigm shift to these challenges. It allows explaining AI decision-making processes to increase their interpretability and transparency (38, 39). This transparency becomes crucial in a clinical context where the potential for AI-based decision-making may either enhance the level of trust or reduce the effectiveness of clinical decisions. By revealing how the AI reaches its conclusions, XAI builds trust and offers deeper insights into the potential and existing factors influencing cardiovascular risk. This aspect of explaining and justifying these predictions can help fill this gap and formally integrate these advanced AI technologies into the clinical environments for better recognition and acceptance.

To enhance the interpretability of the proposed model for cardiovascular disease prediction, this study uses XAI methods like SHAP and LIME. SHAP is derived from cooperative game theory, which provides important values for all features and paints a global and local picture of how each feature affects the model outcomes (40). In contrast, LIME is used as an interpreter to explain individual predictions based on converting a complex model to a simpler one by showing those features whose change influences specific results in a more easily understandable manner (41). These methods improve the credibility and reliability of the discovered patterns to the predictions made by AI, which makes them more understandable to doctors.

The diagnosis of CVDs has been an active area of research interest for several decades. Conventional approaches mainly focus on statistical models and basic or standard pattern analysis methods to establish risk factors and forecast occurrences. Former models still rely on demographic characteristics and medical history, including the Framingham Risk Score. Other established clinical risk scores such as SCORE2 and ASCVD are also commonly used benchmarks in clinical practice. However, these scores often rely on a limited set of variables and assume linear relationships, which may not fully capture the complexity of cardiovascular risk factors. Although useful, these models are often static and lack adaptability to individual patient variability. Furthermore, the complexity of CVDs, influenced by genetic, environmental, and lifestyle factors, requires more advanced methods for accurate predictions. The research work (42) emphasized the importance of machine learning in combating CVDs which are considered significant worldwide challenges. It presented a conceptual AI system that used algorithms such as Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Random Forest (RF) to improve the efficiency of CVD risk prediction using real-life clinical data. The system’s validity proved its operational employability and efficiency in dispensing risk evaluations. Further, it provided preventive care suggestions concerning specific patients, creating a culture of positive health management. This focused on the predictive value of early CVD diagnosis using machine learning that enabled effective individualized treatment to save patient’s lives and minimize the general costs associated with such diseases. However, the performance of the proposed AI-driven system depends on the quality and coverage of the healthcare dataset used for training and testing, which may be a significant challenge for its wide applicability to diverse populations.

According to Swain (43), the prediction of cardiovascular diseases underlined the importance of using machine learning to enhance healthcare. Logistic Regression (LR), Random Forest, Gradient Boosting, Support Vector Machine (SVM), and Naive Bayes have been commonly explored for integrating cardiovascular health conditions. The research indicated that when Naive Bayes and Decision Trees are used together, their diagnostic accuracy is higher than that of other classifiers. Dealing with noise and missing values is one of the key steps in data pre-processing, and it should be done carefully to improve the model’s performance. Measures such as accuracy, sensitivity, and specificity made it possible to determine whether these models were useful in identifying at-risk individuals. In addition, data visualization techniques were appreciated, and the relationships of numerous attributes that can impact the probability of developing cardiovascular diseases were explained. The literature highlighted the need to embrace intelligent machine learning in combination with sound approaches to handling the data to enhance cardiovascular disease prediction.

In Nagavelli et al. (44), the study focused on the importance of machine learning for predicting CVD, highlighting the application of improved computational tools for better diagnostic capabilities and patient care. They intended to emphasize the significance of altering the baseline and the follow-up online datasets on CVD events. The study also used logistic regression, SVM, naïve Bayes, random forest, and KNN models that were selected depending on their performance in accurately diagnosing the disease. A standard procedure and rigorous validation process were followed, and the reliability of these models was checked to estimate the likelihood of CVD based on data input. The study found that CVD predictions using machine learning techniques reduced classification errors and increased the diagnostic reliability of the information. This multifaceted approach underscored the significant applications of artificial intelligence in clinical decision-making and expanded the current body of knowledge on computational biology and predictive modeling. The research (45), provided a thorough analysis of existing literature on CVD risk prediction models. The review, which included 212 articles from an initial 9965 references, identified 363 multivariable models, predominantly from Europe, with 46% focusing on both fatal and non-fatal coronary heart disease. Most models (58%) predicted risk over 10 years, although 13% lacked a clear prediction horizon. Common predictors were smoking (90%) and age (88%), with 69% of models being sex-specific. Significant methodological heterogeneity was noted, inconsistent definitions of predictors and outcomes were found, and many models were missing critical clinical and methodological details. Validation was limited, with only 36% undergoing external validation and 19% validated by independent investigators, showing varied performance in discrimination and calibration metrics. The authors recommend focusing future research on validating and comparing existing models, adapting them to local contexts, and incorporating new predictors to improve predictive accuracy, highlighting the complexity and need for enhanced methodologies in CVD risk prediction. The research highlighted significant limitations in CVD risk prediction models, including methodological heterogeneity and lack of external validation, undermining their reliability and generalizability in real-world settings.

The study (40) employs SHAP to explain three different ML models used for determining critical clearing time in power systems and to identify the impact of the variables for improved planning and operations. In Wu et al. (41), a deep learning recommender model is used for heart disease and diabetes with LIME explanation. By providing interpretable results involving features CholCheck and HighBP for heart disease, glucose for diabetes, and BMI and age for diabetes, the operation is credible and beneficial for patients.

Table 1 includes several studies that address CVD prediction and diagnosis with the help of different machine-learning techniques and their performances. For instance, Kuhar et al. (42) employed a Random Forest algorithm that yielded 90% accuracy in identifying ASCVD with the optimal utilization of healthcare resources. Nagavelli et al. (44) employed methods such as Logistic Regression and Support Vector Machine and got enhanced diagnostic efficacy. In these works, diagnostic accuracy was improved, but the problem was that XAI did not receive enough attention, and it is essential to improve the trust in these models in the clinical field (4751).

TABLE 1
www.frontiersin.org

Table 1. Comparative analysis of previously published works.

This research addresses the critical limitations of current computational models for predicting cardiovascular diseases, particularly their “black box” nature and lack of explainable features, which hinder their widespread adoption in clinical practice. Based on the state of the art presented, there is a clear need for a study that bridges the gap between AI-driven predictions and their reliable application in healthcare. By integrating Explainable AI (XAI) techniques such as SHAP and LIME, this study aims to develop an intelligent forecasting system that improves prediction accuracy and offers transparent and interpretable insights. These explainable features will empower clinicians to make more informed decisions, enhancing the trustworthiness and utility of AI predictions in real-life healthcare settings

2 Materials and methods

Cardiovascular disease risk assessment and healthcare management have made significant strides toward a sophisticated predictive capability; however, this field is plagued by several major issues that hinder the development and application of accurate prediction models. One major challenge is the complexity of CVD, which includes one or several risk factors and comorbidity factors that differ in different population groups. This complexity makes it difficult to develop models that balance realism with specificity. Additionally, the variability and quality of patient data present another hurdle, as data often come from diverse sources with different levels of accuracy and completeness, leading to potential biases and inconsistencies in model predictions. Furthermore, implementing artificial intelligence into clinical practice can threaten the interpretability of AI decision-making. Clinicians must be confident in the outputs produced by these models, especially when it comes to cardiovascular risk assessments. The absence of proper explainability architectures in many AI models is another problem that hampers their adoption and implementation in various contexts.

To address these challenges, explainable AI (XAI) must be integrated, which can act as a solution. XAI helps make the AI models better understandable by providing ways to interpret how the AI model predicts. It lifts clinicians’ comfort because they are able to know why a model has made a certain decision while preventing the use of unsuitable models in practice. In this research work, a model is proposed to make AI models more transparent and understandable, where XAI facilitates their integration into healthcare settings, enabling the development of intelligent forecasting systems that are not only accurate but also reliable, ethical, and widely accepted.

2.1 Proposed model components

Figure 1 illustrates the abstraction of the proposed model for CVD prediction, which consists of five key components: input layer, pre-processing layer, training layer integrated with XAI, performance layer, and validation step.

FIGURE 1
Horizontal bar chart showing the impact of various factors on a score of -5.23. Factors include Smoking History, Age Category, General Health, Arthritis, Health Status, and Diabetes. Smoking History has a higher negative impact, whereas other factors contribute positively, with Health Status having the most positive influence.

Figure 1. Abstraction of the proposed model.

The input layer: Enables devices used in healthcare to become more efficient by communicating sensory data (wirelessly), potentially negating cellular communication costs for those same products. The service-oriented layer provides data collection and transmission, crucial for full-scale healthcare management.

Pre-processing layer: This layer is employed to manipulate the data from input layers with the help of averaging smoothing, normalization and cleaning techniques to make it more factual before modeling. Processed data is saved on the cloud for future reference.

Training layer with XAI: Train data is again split into the 80% for training and 20% of testing. This is data used to train machine learning models on it. It combines XAI methods like SHAP & LIME to generate human-friendly explanations about the model predictions and make them transparent andd interpretable.

Performance layer: After training, evaluate the model performance and store results in cloud-based data storage.

Validation step: The model will get the learned data from cloud storage to predict how heart disease will progress now. It is a constantly learning and evolving system that learns from previous predictions to make better decisions over time.

2.2 Prediction model using XAI

Figure 2 shows the model to predict cardiovascular disease using XAI. Data from various sensors and healthcare devices in a dataset (52) are acquired by this model and passed through the pre-processing layer for averaging smoothing, normalization, and data cleaning to make the data accurate and relevant. Missing numerical values were handled using mean imputation, and categorical features were imputed using mode imputation where needed. Feature selection was based on feature importance scores from tree-based models. The pre-processed data is divided into two subsets: Training Data Set: 80% and Testing Data Set: 20%. The training data is then used to develop predictive models based on several machine learning methodologies; on the other hand, the testing dataset is kept safely in the cloud storage.

FIGURE 2
Flowchart illustrating cardiovascular health monitoring. Inputs include general health, checkups, exercise, and fried potato consumption. Data is processed through layers: preprocessing, explainable AI, and performance. It proceeds to a validation phase, linking to cloud storage and health monitoring.

Figure 2. Proposed model.

2.2.1 Explain ability using SHAP and LIME

The predictions generated by the machine learning models are then subjected to XAI methods, which provide human-friendly explanations, enhancing transparency and interpretability of the outcomes. The primary goal of XAI in this context is to build trust using SHAP and LIME in machine learning models (often considered “black boxes”) by highlighting the importance of local and global variables through post hoc explanations. XAI not only helps clarify the black-box nature of these models but also advocates for accountable AI by promoting the development of transparent models. Making the decision process of Machine Learning models more interpretable to the end-users and other stakeholders is a central goal of explainable AI.

LIME and SHAP are the model-agnostic interpretation approaches that keep high prediction performance and the distinction between the model and the explanation. LIME offers local explanations that explain the model’s behavior in the proximity of a certain example, while SHAP provides global explanations showing the impact of features in general on the predictions. These methods enhance the contribution of local and global variables in the decision-making process of the machine learning models to be in a format that users and other stakeholders will easily understand.

LIME: It is a well-known approach for local explanation that builds local surrogate models that can explain complex machine learning models. It does so by initially reprocessing the data into a new dataset, using this newly generated data set to train the interpretable model. To attain this aim, the loss function L is used to minimize the optimality between the predictions of the original model f as well as the interpretable surrogate model g. The function is expressed as:

γ ( x ) = a r g g ϵ G m i n ( L ( f , g , π x ) + Ω ( g ) ) (1)

In Equation 1, the loss function L(f,gπx) involves the original model f, the interpretable surrogate model g, and πx, which represents the input features corresponding to instance x. This function aims to minimize the difference between the predictions of the two models while incorporating a regularization term Ω(g). This local explanation model can also be used to explain individual predictions, which could help explain why this specific decision was made in this instance.

SHAP: SHAP is a global explanation technique that helps the user quantify any feature’s contribution to the formation of the model’s decision. This is based on the theory of Shapley values used in cooperative game theory, here the worth of every feature is computed for all possible scenarios of feature values. The formula for calculating the Shapley value ϕj(x) is as follows:

φj(x)=s{x1,x2,...,xm}\{xj}|s|!(m|s|1)!m!(val(s{xj}val(s))(2)

In Equation 2, the Shapley value φj(x) Incorporates parameters such as s, which represents subsets of features excluding xj, and m, the total number of features. The term val(s ∪ {xj} − val(s) quantifies the contribution of feature xj to the prediction for the subset s. SHAP values can be calculated to give an overall global explanation of how each feature impacts the prediction and other scalable models as well.

Partial dependence plots: It exhibits a single feature and how it affects predictions, as PDP does. The partial dependence function f^(xs) is defined as:

f^(xs)1n i=1nf(x2,xic)(3)

In Equation 3, the partial dependence function f^(xs) is defined over n instances of the dataset, where xs represents the specific feature of interest and xic Denotes the complementary features. This function computes the average prediction by fixing the value of xs while varying xic. It offers a graphical view that makes it possible to comprehend the global relationship between the features and the outcomes predicted by PDP.

Subsequently, the predetermined criteria are checked in order to ascertain if all the learning objectives have been met after which the trained explanation patterns are tested for validity. If the criteria are met, the trained model is saved on the cloud; otherwise, the machine learning algorithm is recursively retrained until the criteria are met. In the validation phase, the testing dataset and the learned explanation patterns are imported from the cloud to predict cardiovascular disease. These predictions are then re-evaluated, and if the model is able to detect possible cardiovascular risks, the system will send out an alert signifying the existence of the disease. If no risks are identified, the process is discarded.

3 Results

Integrating XAI into intelligent forecasting systems presents a transformative approach in the rapidly evolving field of cardiovascular disease prediction. This research aims to model an intelligent forecasting system that predicts cardiovascular risks with better performance and provides clear, interpretable insights into the decision-making process. By leveraging advanced machine learning techniques combined with XAI, this proposed system enhances the transparency and trustworthiness of predictions, enabling healthcare professionals to understand better the underlying factors driving each prediction. This approach aims to bridge the gap between complex AI models and their clinical applicability by applying XAI on a dataset, where 80% is used for training and 20% for testing. This ensures that predictions are accurate and explainable, making them reliable for critical healthcare decisions.

Figure 3 provides a distribution of the “Height” feature concerning a target variable through two key plots. The left plot shows the density distribution of “Height” for both target variable classes, using distinct colors to facilitate easy comparison between the two groups. The second plot on the right focuses exclusively on the positive class (where the target = 1), offering a more granular view of its distribution. This plot includes a filled density curve and a rug plot along the x-axis, highlighting individual data points, giving insight into the concentration and spread of “Height” within the positive class.

FIGURE 3
Bar chart showing prediction probabilities with class 0 at 0.99 and class 1 at 0.01. A decision plot indicates the feature impacts with “Age_Category”, “General_Health”, “Diabetes”, “Smoking_History”, “health_status”, “Arthritis”, and “Exercise”. A feature-value table lists values for each feature, highlighting “Smoking_History” at 1.00 in orange.

Figure 3. Distribution of height by target variable.

Figure 4 visualizes the distribution of the “Weight” feature through two key plots. One plot shows the density distribution of “Weight” for both classes of a binary target variable, while the other focuses specifically on the distribution of “Weight” within one class, like the positive class. The plots use distinct colors to differentiate between classes, which helps understand the relationship between “Weight” and the target variable within the dataset.

FIGURE 4
Flowchart illustrating a process for detecting cardiovascular disease using machine learning. The training phase involves preprocessing data, splitting into training and testing sets, and using machine learning algorithms to make predictions. Explanations from explainable AI help meet learning criteria. The validation phase checks for cardiovascular disease; if not met, data is imported from cloud storage for predictions.

Figure 4. Distribution of weight by target variable.

Figure 5 presents the distribution of Body Mass Index (BMI) in relation to a binary target variable, likely representing the presence or absence of heart disease. The left plot compares the BMI distribution for both target classes, with distinct colors highlighting the differences between those with and without heart disease. The right plot zooms in on the BMI distribution specifically for the positive class (where the target variable = 1, possibly indicating heart disease), offering a more detailed view with a filled density curve and a rug plot showing individual data points.

FIGURE 5
Two density plots showing height distribution. Left plot compares two groups: with (target 1, red) and without heart disease (target 0, green). The right plot focuses on target 1, showing height range primarily between 150-190 cm, with peaks around 165-170 cm.

Figure 5. Distribution of BMI by target variable.

Figure 6 shows the distribution of alcohol consumption in relation to a binary target variable, likely indicating the presence or absence of heart disease. The left plot compares the alcohol consumption distribution between both target classes, using different colors to distinguish between those with and without heart disease. The right plot focuses solely on the positive class (where the target variable = 1, possibly indicating heart disease), providing a detailed view of alcohol consumption within this group with a density curve and individual data points highlighted by a rug plot.

FIGURE 6
Comparison of two density plots showing BMI distribution. The left plot contrasts BMI for individuals with and without heart disease, peaking near a BMI of 30. The right plot focuses on individuals with heart disease, also peaking around 30.

Figure 6. Distribution of alcohol-consumption by target variable.

Figure 7 shows a Pearson correlation matrix, illustrating the linear relationships between different features in the dataset. Each cell represents the correlation coefficient between two variables, with values ranging from −1 (strong negative correlation) to 1 (strong positive correlation). The color gradient highlights the strength and direction of these correlations, with warmer colors indicating stronger correlations and cooler colors indicating weaker ones. This matrix helps quickly identify significant relationships between variables.

FIGURE 7
Two histograms depict weight distribution. The left chart shows weight distribution by heart disease status. The teal area represents the no disease group, and the orange area represents those with heart disease. The right chart focuses on the positive class, showing the weight distribution for those with heart disease, indicated by an orange density plot and corresponding rug plot at the bottom. Both charts show density on the y-axis and weight on the x-axis, ranging from 0 to 300.

Figure 7. Pearson correlation.

Table 2 provides the confusion matrix for six machine learning models (Decision Tree, Random Forest, Multi-Layer Perceptron, XGBoost, LightGBM, and Catboost) across training (246,989 samples) and testing (61,748 samples) datasets. The True Positive (TP) counts are consistently high, ranging from 226,307 to 226,679 for training and 56,532 to 56,667 for testing, indicating strong performance in correctly identifying positive cases. However, the True Negative (TN) counts are significantly lower, with values ranging from 514 to 1,028 for training and only 103 to 191 for testing, suggesting that the models are less effective at identifying negative cases. The False Positive (FP) counts range from 18,942 to 19,548 for training and 4,802 to 4,890 for testing, while the False Negative (FN) counts are relatively low, ranging from 340 to 712 for training and 88 to 223 for testing. These facts highlight the models’ strengths in predicting positives and reveal challenges in accurately identifying negatives.

TABLE 2
www.frontiersin.org

Table 2. Confusion matrix and the performance matrices of the proposed system.

Table 2 and Figure 8 also compare the performance of these machine learning models across several key metrics, including Accuracy (ACC), True Positive Rate (TPR), True Negative Rate (TNR), False Negative Rate (FNR), False Positive Rate (FPR) predictive values (PPV and NPV), Likelihood Positive Ratio (LR+), and Likelihood Negative Ratio (LR-). All models show high accuracy and TPR, indicating strong performance in identifying positive cases. Among all models, LightGBM achieves the highest accuracy on the testing set at 91.94%, making it the recommended algorithm for this task.

FIGURE 8
Four line graphs compare different machine learning models across four metrics: accuracy, true positive rate, true negative rate, and false positive rate. Models include Decision Tree, Random Forest, Multi-Layer Perceptron, XGBoost, LightGBM, and Catboost. Each graph shows the performance for training and test datasets, with varying trends for each model and metric.

Figure 8. Performance matrices of the proposed system.

The SHAP and LIME plots in Figures 912 were generated for the LightGBM model to visualize the impact of each feature on cardiovascular disease prediction. Figure 9 is a SHAP summary plot for the testing set, showing the average impact of each feature on the model’s output. The length of each bar represents the mean absolute SHAP value, indicating the importance of each feature. “Age_Category” has the highest impact on the model’s predictions, followed by “General_Health” and “Smoking_History.” This plot helps to understand the most influential features in the model’s decision-making process.

FIGURE 9
Two density plots showing alcohol consumption distribution. The left plot compares heart disease targets (0: green, 1: orange), with both peaking at low consumption. The right plot shows the positive class (target = 1) with a similar peak at low consumption and decreasing thereafter.

Figure 9. SHAP summary plot value impact on model output magnitude.

Figure 10 is the SHAP beeswarm plot illustrating the impact of various features on the model’s predictions for cardiovascular disease. Age_Category, General_Health, and Smoking_History are the most influential factors, with higher values (shown in red) generally increasing the likelihood of a positive prediction for cardiovascular disease. The plot highlights how individual features contribute to the model’s output, with age being the most significant predictor.

FIGURE 10
Bar chart displaying mean absolute SHAP values. Age Category has the highest impact, followed by General Health, Smoking History, Arthritis, Diabetes, health status, and Exercise, in descending order. Values range from zero to four hundred.

Figure 10. SHAP beeswarm plot value impact on model output.

Figure 11 illustrates the SHAP waterfall plot, showing the feature contributions to a specific individual’s cardiovascular disease risk prediction. The true outcome—absence of cardiovascular disease—is included to provide context for the model’s prediction. The model predicts a final score of −5.23, indicating a low risk of cardiovascular disease for this individual. Smoking_History = 1.0 increases the risk, pushing the score higher, while Age_Category = 1.0, General_Health = 4.0, and the absence of Arthritis and Diabetes lower the risk, pushing the score further down. This clearly shows how each feature contributes to the final prediction score, moving it toward a lower-risk outcome.

FIGURE 11
SHAP summary plot showing feature impacts on model output for various health-related factors. Horizontal axis represents SHAP values, with features like age category, general health, and exercise. Blue to red gradient indicates low to high feature values.

Figure 11. Feature contributions to cardiovascular disease risk prediction: a SHAP waterfall analysis.

Figure 12 is a Local Interpretable Model-Agnostic Explanations (LIME) explanation showing different features contributing to the model’s prediction for cardiovascular disease risk. The figure reveals that the model predicts a 99% probability that the individual does not have the disease (class 0) and only a 1% probability that they do (class 1). Key features such as Age_Category = 1.00, General_Health = 4.00, the absence of Diabetes and Arthritis, and a good health_status = 5.00 strongly influence the prediction toward class 0, significantly lowering the perceived risk. Although Smoking_History = 1.00 slightly increases the likelihood of class 1, its impact is not enough to outweigh the other features. This LIME explanation effectively demonstrates how each feature influences the model’s prediction, making the decision-making process transparent.<H1>: 4 Discussion

FIGURE 12
A triangular correlation matrix heatmap displays the correlation coefficients between various health and lifestyle variables such as exercise, diabetes, BMI, and heart disease. The color scale on the right ranges from blue for negative correlations to red for positive correlations, indicating the strength and direction of relationships.

Figure 12. LIME explanation of the proposed system.

The performance of machine learning models in identifying cardiovascular diseases (CVDs) is crucial for their practical utility. Previous models have shown potential, but their non-interpretability can often nullify any benefit as they are too hard to implement. This research gap is addressed by incorporating Explainable AI (XAI) in the proposed system, which connects advanced machine learning practices with their hands-on usage within healthcare. The proposed model achieves accurate predictions and produces disentangled, explanatory factors influencing decision-making. This transparency builds trust between healthcare professionals and AI systems by clarifying the rationale behind each prediction. The system is designed to integrate with Electronic Medical Records (EMRs) and dashboards, enabling clinicians to access real-time predictions during both routine visits and emergencies. Furthermore, the interpretable outputs help clinicians focus on modifiable risk factors like smoking and BMI, enabling personalized prevention strategies and potentially reducing unnecessary diagnostic tests, thereby enhancing patient care quality.

Although the dataset used in this study (52) includes features like height, weight, and lifestyle factors, it does not provide detailed demographic or genetic profiles. We acknowledge this limitation and applied standard pre-processing techniques, including stratified sampling and cross-validation, to balance representation. Future work will focus on incorporating more diverse datasets to enhance model generalizability and address potential biases. We also acknowledge that model performance may vary across different healthcare systems and populations with varying access to technology.

As shown in Table 3, the proposed XAI-based system outperforms other models. Although previous methods, i.e., Ensemble Classification (47), Hybrid Models (49), and Artificial Neural Networks (ANN), have accuracy rates between 85 and 91%, the proposed system was able to perform at an overall rate of pp more accurately than that with rate of The following section presents a detailed discussion on model performance compared not only with baseline random level but also associated works. This shows how well the model works. While their Likelihood Ratios (LRs) for true positives and negatives are quite similar to the other models, using XAI techniques gives a significant advantage as it makes it transparent whether these animals can be sacrificed or should never be discharged.

TABLE 3
www.frontiersin.org

Table 3. Comparison of the proposed system performance with previously published approaches.

By using SHAP and LIME together, we can see how the model decides on much deeper layers rather than just pointing to its accuracy. Even if the LRs result in minor improvements, they more than make up that difference; however, explaining what each feature represents for classification is excellent. We can determine that the SHAP summary plot and beeswarm plot demonstrate in plain sight the importance of features such as Age_Category, General_Health, or Smoking_History on the model predictions. This will allow healthcare providers to identify and focus on the factors with real impact, significantly improving the model’s utility for making critical clinical decisions.

Furthermore, these explanations are brought to life with local insights through LIME visualization that apply on individual predictions. In this case, Figure 12 demonstrates how LIME opens the “black box” regarding model behavior on example people to explain its rationale for these predictions. This level of interpretability is significant for clinical use, where the reasoning behind a prediction can guide decision-making and ultimately impact individual care.

Table 3 shows that the model not only performed well but could also be a strong tool for clinical use when coupled with its interpretability. Although the Randomized Decision Tree Ensemble (53) and SMOTE-based approaches (54) are within this accuracy range, they lack an explanation for decision-making besides the input value sent in the index cases. What makes the proposed model different from traditional black-box methods is its high predictive power while being simultaneously humanly interpretable. Additionally, while the Framingham Risk Score and echocardiography remain valuable clinical tools, the proposed XAI system can complement these by providing transparent, patient-specific risk explanations that integrate with existing risk assessments. This synergy empowers clinicians to combine AI-driven insights with established clinical protocols for more informed, personalized care.

The proposed system is an essential leap in CVD prediction due to the real-time nature of predictions and explanations for these predictions. This gives the model an accuracy of 91.94%. Because it uses XAI techniques, besides being very effective in identifying patients at risk, any clinician can trust that this is occurring assertTrue. The addition of interpretability through SHAP and LIME enables healthcare providers to visualize the factors driving each decision, turning your model into a working instrument for daily clinical practice. The model may be further refined by improving data inputs (Lifestyle Risk factors) or generalizability of the input using a larger dataset. Still, this method predicts CARDIoGRAMplusC4D future CVD risk better than all standard published models across diverse populations.

The proposed model competes with and even outperforms. Table 3 shows that the proposed system is a competitive achievement and has a greater interpretability ability than many existing models. With the integration of XAI, this system becomes an explainable and trustworthy high-performing healthcare tool for real-world applications with imperviousness to transparency & reliability. Its capability to provide transparency and prescriptiveness for the prediction process distinguishes it as a significant advancement in CVD prediction.

5 Conclusion

The major issues in cardiovascular disease detection include difficulties in model interpretability, model applicability across different populations, and high accuracy requirements. These factors hamper the adoption of proper healthcare intervention strategies; hence, to solve these problems, it is necessary to contribute to early diagnosis, lower mortality rates, and universal availability of healthcare services worldwide. To overcome these challenges, this study proposes an XAI-based model that is highly accurate but also explainable and interpretable, allowing healthcare workers to understand why the model makes specific predictions. With the implementation of XAI, the proposed system is designed to perform effectively across different populations, ensuring its applicability on a global scale. By addressing the limitations of previous models, this system improves cardiovascular disease detection and makes cutting-edge healthcare technologies more accessible and dependable worldwide. The proposed system achieves better results than previously published approaches, regarding 91.94% accuracy and 8.06% miss rate.

Data availability statement

The dataset used in this study is publicly available and can be accessed at: https://www.kaggle.com/code/sid4ds/cardiovascular-disease-risk-prediction/input.

Author contributions

AB: Conceptualization, Methodology, Writing – original draft, Resources, Visualization, Software. AA: Writing – review & editing, Visualization, Data curation, Conceptualization. KA: Visualization, Conceptualization, Writing – review & editing, Data curation. MS: Validation, Visualization, Methodology, Formal Analysis, Writing – review & editing. MF: Resources, Writing – review & editing, Visualization, Investigation, Software. RS: Writing – review & editing, Funding acquisition, Resources, Project administration, Investigation.

Funding

The author(s) declare that no financial support was received for the research and/or publication of this article.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The authors declare that no Generative AI was used in the creation of this manuscript.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1. Ahmed H, Younis EMG, Hendawi A, Ali A. A. Heart disease identification from patients’ social posts, machine learning solution on Spark. Future Generation Comput Syst. (2020) 111:714–22. doi: 10.1016/j.future.2019.09.056

Crossref Full Text | Google Scholar

2. Birger M, Kaldjian A, Roth G, Moran A, Dieleman J, Bellows B. Spending on cardiovascular disease and cardiovascular risk factors in the United States: 1996 to 2016. Circulation. (2021) 144:271–82. doi: 10.1161/CIRCULATIONAHA.120.053216

PubMed Abstract | Crossref Full Text | Google Scholar

3. Ali F, El-Sappagh S, Islam R, Kwak D, Ali A, Imran A, et al. A smart healthcare monitoring system for heart disease prediction based on ensemble deep learning and feature fusion. Information Fusion. (2022) 63:208–22. doi: 10.1016/j.inffus.2020.06.008

Crossref Full Text | Google Scholar

4. Kite BJ, Tangasi W, Kelley M, Bower JK, Foraker RE. Electronic medical records and their use in health promotion and population research of cardiovascular disease. Curr Cardiovc Risk Rep. (2015) 9:422. doi: 10.1007/s12170-014-0422-5

Crossref Full Text | Google Scholar

5. Begum FZ, Mashl SS, Karthikeyan B, Alanazi I. A prediction of heart disease using IoT based ThingSpeak basis and deep learning method. J Adv Res Appl Sci Eng Technol. (2024) 47:166–79. doi: 10.37934/araset.47.1.166179

Crossref Full Text | Google Scholar

6. Suhaimi N, Ramli MSA, Muhammad NA. A review on predictive model for heart disease using wearable devices datasets. Appl Math Comput Intell. (2024) 13:100–12. doi: 10.58915/amci.v13i2.367

Crossref Full Text | Google Scholar

7. Bilal A, Shafiq M, Obidallah W, Long H. Quantum computational infusion in extreme learning machines for early multi-cancer detection. J Big Data. (2025) 12:27. doi: 10.1186/s40537-024-01050-0

Crossref Full Text | Google Scholar

8. Bilal A, Alkhathlan A, Kateb F, Tahir A, Shafiq M, Long H. A quantum-optimized approach for breast cancer detection using SqueezeNet-SVM. Sci Rep. (2024) 15:3254. doi: 10.1038/s41598-025-86671-y

PubMed Abstract | Crossref Full Text | Google Scholar

9. Bilal A, Imran A, Baig T, Liu X, Abouel Nasr E, Long H. Breast cancer diagnosis using support vector machine optimized by improved quantum inspired grey wolf optimization. Sci Rep. (2014) 14:10714. doi: 10.1038/s41598-024-61322-w

PubMed Abstract | Crossref Full Text | Google Scholar

10. Bilal A, Khan JA, Alzahrani A, Almohammadi K, Alamri K. Fuzzy deep learning architecture for cucumber plant disease detection and classification. J Big Data. (2025) 12:27. doi: 10.1186/s40537-024-01050-0

Crossref Full Text | Google Scholar

11. Bilal A, Liu X, Shafiq M, Ahmed Z, Long H. NIMEQ-SACNet: A novel self-attention precision medicine model for vision-threatening diabetic retinopathy using image data. Comput Biol Med. (2024) 171:108099. doi: 10.1016/j.compbiomed.2024.108099

PubMed Abstract | Crossref Full Text | Google Scholar

12. Zhang Y, Zhu L, Li X, Ge C, Pei W, Zhang M, et al. M2 macrophage exosome-derived lncRNA AK083884 protects mice from CVB3-induced viral myocarditis through regulating PKM2/HIF-1α axis mediated metabolic reprogramming of macrophages. Redox Biol. (2024) 69:103016. doi: 10.1016/j.redox.2023.103016

PubMed Abstract | Crossref Full Text | Google Scholar

13. Li L, Li J, Zhong M, Wu Z, Wan S, Li X, et al. Nanozyme-enhanced tyramine signal amplification probe for preamplification-free myocarditis-related miRNAs detection. Chem Eng J. (2025) 503:158093. doi: 10.1016/j.cej.2024.158093

Crossref Full Text | Google Scholar

14. Pei W, Zhang Y, Zhu X, Zhao C, Li X, Lü H, et al. Multitargeted immunomodulatory therapy for viral myocarditis by engineered extracellular vesicles. ACS Nano. (2024) 18:2782–99. doi: 10.1021/acsnano.3c05847

PubMed Abstract | Crossref Full Text | Google Scholar

15. Qian K, Bao Z, Zhao Z, Koike T, Dong F, Schmitt M, et al. Learning representations from heart sound: A comparative study on shallow and deep models. Cyborg Bionic Syst. (2024) 5:0075. doi: 10.34133/cbsystems.0075

PubMed Abstract | Crossref Full Text | Google Scholar

16. Ding Z, Zhang L, Zhang Y, Yang J, Luo Y, Ge M, et al. A supervised explainable machine learning model for perioperative neurocognitive disorder in liver-transplantation patients and external validation on the medical information mart for intensive care IV database: Retrospective study. J Med Internet Res. (2025) 27:e55046. doi: 10.2196/55046

PubMed Abstract | Crossref Full Text | Google Scholar

17. Zhang X, Zhang S, Zhang X, Xiong J, Han X, Wu Z, et al. Fast virtual stenting for thoracic endovascular aortic repair of aortic dissection using graph deep learning. IEEE J Biomed Health Inform. (2025) 29:4374–87. doi: 10.1109/JBHI.2025.3540712

PubMed Abstract | Crossref Full Text | Google Scholar

18. Zhao Y, Hu J, Sun X, Yang K, Yang L, Kong L, et al. Loss of m6A demethylase ALKBH5 promotes post-ischemic angiogenesis via post-transcriptional stabilization of WNT5A. Clin Transl Med. (2021) 11:e402. doi: 10.1002/ctm2.402

PubMed Abstract | Crossref Full Text | Google Scholar

19. Bao M, Li G, Huang X, Tang L, Dong L, Li J. Long noncoding RNA LINC00657 acting as a miR-590-3p sponge to facilitate low concentration oxidized low-density lipoprotein-induced angiogenesis. Mol Pharmacol. (2018) 93:368–75. doi: 10.1124/mol.117.110650

PubMed Abstract | Crossref Full Text | Google Scholar

20. Li C, Zhang Z, Luo X, Xiao Y, Tu T, Liu C, et al. The triglyceride-glucose index and its obesity-related derivatives as predictors of all-cause and cardiovascular mortality in hypertensive patients: Insights from NHANES data with machine learning analysis. Cardiovasc Diabetol. (2025) 24:47. doi: 10.1186/s12933-025-02591-1

PubMed Abstract | Crossref Full Text | Google Scholar

21. Wang Z, Liu J, Chen Y, Tang Y, Chen T, Zhou C, et al. From physiology to pathology: Emerging roles of GPER in cardiovascular disease. Pharmacol Ther. (2025) 267:108801. doi: 10.1016/j.pharmthera.2025.108801

PubMed Abstract | Crossref Full Text | Google Scholar

22. Soremekun O, Dib M, Rajasundaram S, Fatumo S, Gill D. Genetic heterogeneity in cardiovascular disease across ancestries: Insights for mechanisms and therapeutic intervention. Camb Prism Precis Med. (2023) 1:e8. doi: 10.1017/pcm.2022.13

PubMed Abstract | Crossref Full Text | Google Scholar

23. Cirino A, Harris S, Lakdawala N, Michels M, Olivotto I, Day S, et al. Role of genetic testing in inherit1ed cardiovascular disease: A review. JAMA Cardiol. (2017) 2:1153–60. doi: 10.1001/jamacardio.2017.2352

PubMed Abstract | Crossref Full Text | Google Scholar

24. Hu Y, Zhou Y, Dai N, Song S, Zhao X, Zhao Y, et al. Enhancing panvascular medicine: Unveiling the nexus of pan-cardio-oncology and expanding therapeutic frontiers. Sci Bull (Beijing). (2025) 70:798–800. doi: 10.1016/j.scib.2025.01.016

PubMed Abstract | Crossref Full Text | Google Scholar

25. Liu Q, Li C, Yang L, Gong Z, Zhao M, Bovet P, et al. Weight status change during four years and left ventricular hypertrophy in Chinese children. Front Pediatr. (2024) 12:1371286. doi: 10.3389/fped.2024.1371286

PubMed Abstract | Crossref Full Text | Google Scholar

26. Zhang Z, Wu K, Wu Z, Xiao Y, Wang Y, Lin Q, et al. A case of pioneering subcutaneous implantable cardioverter defibrillator intervention in Timothy syndrome. BMC Pediatr. (2024) 24:729. doi: 10.1186/s12887-024-05216-w

PubMed Abstract | Crossref Full Text | Google Scholar

27. Chen Z, Li W, Tang Y, Zhou P, He Q, Deng Z. The neutrophil-lymphocyte ratio predicts all-cause and cardiovascular mortality among United States adults with COPD: Results from NHANES 1999-2018. Front Med (Lausanne). (2024) 11:1443749. doi: 10.3389/fmed.2024.1443749

PubMed Abstract | Crossref Full Text | Google Scholar

28. Zhang N, Wang Y, Li W, Wang Y, Zhang H, Xu D, et al. Association between serum vitamin D level and cardiovascular disease in Chinese patients with type 2 diabetes mellitus: A cross-sectional study. Sci Rep. (2025) 15:6454. doi: 10.1038/s41598-025-90785-8

PubMed Abstract | Crossref Full Text | Google Scholar

29. Tarawneh O, Embarak M. Hybrid approach for heart disease prediction using data mining techniques. In Proceedings of the Advances in Internet, Data and web Technologies: The 7th international Conference on Emerging Internet, Data and web Technologies (EIDWT-2019). Berlin: Springer International Publishing (2019). p. 447–54.

Google Scholar

30. Sarkar BK. Hybrid model for prediction of heart disease. Soft comput. (2020) 24:3. doi: 10.1007/s00500-019-04022-2

Crossref Full Text | Google Scholar

31. Haq AU, Li JP, Memon MH, Nazir S, Sun R, Garciá-Magarinõ IA. hybrid intelligent system framework for the prediction of heart disease using machine learning algorithms. Mobile Information Syst. (2018) 2018:21. doi: 10.1155/2018/3860146

Crossref Full Text | Google Scholar

32. Dhar A, Roy S, Dey K, Datta T, Biswas P. A hybrid machine learning approach for prediction of heart diseases. In Proceedings of the 2018 4th International Conference on Computing Communication and Automation (ICCCA). Piscataway, NJ: IEEE (2018). p. 1–6.

Google Scholar

33. Saleem M., Khan M, Issa GF, Khadim A., Asif M, Akram AS, et al. Smart spaces: Occupancy detection using adaptive back-propagation neural network. In Proceedings of the 2nd International Conference on Business Analytics for Technology and Security, ICBATS 2023. Piscataway, NJ: IEEE (2023). doi: 10.1109/ICBATS57792.2023.10111286

Crossref Full Text | Google Scholar

34. Athar A, Asif RN, Saleem M, Munir S, Al Nasar MR, Momani AM. Improving pneumonia detection in chest X-rays using transfer learning approach (AlexNet) and adversarial training. In Proceedings of the 2nd International Conference on Business Analytics for Technology and Security, ICBATS 2023. Piscataway, NJ: IEEE (2023). doi: 10.1109/ICBATS57792.2023.10111193

Crossref Full Text | Google Scholar

35. Sajjad G, Shoaib Khan MB, Ghazal TM, Saleem M, Khan MF, Wannous M. An early diagnosis of brain tumor using fused transfer learning. In Proceedings of the 2nd International Conference on Business Analytics for Technology and Security, ICBATS 2023. Piscataway, NJ: IEEE (2023). doi: 10.1109/ICBATS57792.2023.10111263

Crossref Full Text | Google Scholar

36. Zihni E, Madai V, Livne M, Galinovic I, Khalil A, Fiebach J, et al. Opening the black box of artificial intelligence for clinical decision support: A study predicting stroke outcome. PLoS One. (2020) 15:e0231166. doi: 10.1371/journal.pone.0231166

PubMed Abstract | Crossref Full Text | Google Scholar

37. Schlesinger DE, Stultz CM. Deep Learning for Cardiovascular Risk Stratification. Berlin: Springer (2020). doi: 10.1007/s11936-020-00814-0

Crossref Full Text | Google Scholar

38. Chamola V, Hassija V, Sulthana AR, Ghosh D, Dhingra D, Sikdar B. A review of trustworthy and explainable artificial intelligence (XAI). IEEE Access. (2023) 11:78994–9015. doi: 10.1109/ACCESS.2023.3294569

Crossref Full Text | Google Scholar

39. Barredo Arrieta A, Díaz-Rodríguez N, Del Ser J, Bennetot A, Tabik S, Barbado A, et al. Explainable artificial intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI. Information Fusion. (2020) 58:82–115. doi: 10.1016/j.inffus.2019.12.012

Crossref Full Text | Google Scholar

40. Hamilton RI, Papadopoulos PN. Using SHAP values and machine learning to understand trends in the transient stability limit. IEEE Trans Power Syst. (2024) 39:1384–97. doi: 10.1109/TPWRS.2023.3248941

Crossref Full Text | Google Scholar

41. Wu Y, Zhang L, Bhatti U, Huang M. Interpretable machine learning for personalized medical recommendations: A LIME-based approach. Diagnostics (Basel). (2023) 13:2681. doi: 10.3390/diagnostics13162681

PubMed Abstract | Crossref Full Text | Google Scholar

42. Kuhar S, Kaur A, Raj T, Pareek S, Grover K, Kumar R. Cardiovascular disease prediction and prevention: Exploring novel techniques and applications using machine learning. In Proceedings of the 2023 12th International Conference on System Modeling and Advancement in Research Trends, SMART 2023. Piscataway, NJ: IEEE (2023). doi: 10.1109/SMART59791.2023.10428297

Crossref Full Text | Google Scholar

43. Debabrata S, Badal P, Hansal S, Aditya G, Manas RP, Harprith K, et al. Cardiovascular disease prediction using various machine learning algorithms. J Comput Sci. (2022) 18:993–1004. doi: 10.3844/jcssp.2022.993.1004

Crossref Full Text | Google Scholar

44. Nagavelli B, Samanta U, Thomas D. ML-based prediction model for cardiovascular disease. In Proceedings of the Emerging Technologies in Data Mining and Information Security: Proceedings of IEMIS 2022. (Vol. 2), Singapore: Springer Nature (2022). p. 91–8.

Google Scholar

45. Damen J, Hooft L, Schuit E, Debray T, Collins G, Tzoulaki I, et al. Prediction models for cardiovascular disease risk in the general population: Systematic review. BMJ. (2016) 353:i2416. doi: 10.1136/bmj.i2416

PubMed Abstract | Crossref Full Text | Google Scholar

46. Nguyen T, Khosravi A, Creighton D, Nahavandi S. Classification of healthcare data using genetic fuzzy logic system and wavelets. Expert Syst Appl. (2015) 42:2184–97. doi: 10.1016/j.eswa.2014.10.027

Crossref Full Text | Google Scholar

47. Latha CBC, Jeeva SC. Improving the accuracy of prediction of heart disease risk based on ensemble classification techniques. Inform Med Unlocked. (2019) 16:100203. doi: 10.1016/j.imu.2019.100203

Crossref Full Text | Google Scholar

48. Long NC, Meesad P, Unger H. A highly accurate firefly based algorithm for heart disease prediction. Expert Syst Appl. (2015) 42:8221–31. doi: 10.1016/j.eswa.2015.06.024

Crossref Full Text | Google Scholar

49. Mohan S, Thirumalai C, Srivastava G. Effective heart disease prediction using hybrid machine learning techniques. IEEE Access. (2019) 7:81542–54. doi: 10.1109/ACCESS.2019.2923707

Crossref Full Text | Google Scholar

50. Tuli S, Basumatary N, Gill S, Kahani M, Arya S, Wander G, et al. HealthFog: An ensemble deep learning based smart healthcare system for automatic diagnosis of heart diseases in integrated IoT and fog computing environments. Future Generation Comput Syst. (2020) 104:187–200. doi: 10.1016/j.future.2019.10.043

Crossref Full Text | Google Scholar

51. Samuel OW, Asogbon GM, Sangaiah AK, Fang P, Li G. An integrated decision support system based on ANN and Fuzzy_AHP for heart failure risk prediction. Expert Syst Appl. (2017) 68:163–72. doi: 10.1016/j.eswa.2016.10.020

Crossref Full Text | Google Scholar

52. Kaggle. Cardiovascular Disease Risk Prediction Dataset. Available online at: https://www.kaggle.com/code/sid4ds/cardiovascular-disease-risk-prediction/input (accessed December, 2024).

Google Scholar

53. Mienye ID, Sun Y, Wang Z. An improved ensemble learning approach for the prediction of heart disease risk. Inform Med Unlocked. (2020) 20:100402. doi: 10.1016/j.imu.2020.100402

Crossref Full Text | Google Scholar

54. Dritsas E, Trigka M. Efficient data-driven machine learning models for cardiovascular diseases risk prediction. Sensors (Basel). (2023) 23:1161. doi: 10.3390/s23031161

PubMed Abstract | Crossref Full Text | Google Scholar

55. Otoom AF, Abdallah EE, Kilani Y, Kefaye A, Ashour M. Effective diagnosis and monitoring of heart disease. Int J Softw Eng Appl. (2015) 9:143–56. doi: 10.14257/ijseia.2015.9.1.12

Crossref Full Text | Google Scholar

56. Vembandasamyp K, Sasipriyap RR, Deepap E. Heart diseases detection using naive bayes algorithm. IJISET-Int J Innov Sci Eng Technol. (2015) 2:441–4.

Google Scholar

57. Chaurasia S, Pal DV. Data mining approach to detect heart diseases. Int J Adv Comput Sci Information Technol. (2014) 2:55–66.

Google Scholar

58. Parthiban G, Srivatsa SK. Applying machine learning methods in diagnosing heart disease for diabetic patients. Int J Appl Inf Syst. (2012):25–30. 3: doi: 10.5120/ijais12-450593

PubMed Abstract | Crossref Full Text | Google Scholar

59. Dwivedi AK. Performance evaluation of different machine learning techniques for prediction of heart disease. Neural Comput Appl. (2018) 29:685–93. doi: 10.1007/s00521-016-2604-1

Crossref Full Text | Google Scholar

Keywords: cardiovascular diseases, explainable artificial intelligence, electronic medical records, machine learning, shap, lime

Citation: Bilal A, Alzahrani A, Almohammadi K, Saleem M, Farooq MS and Sarwar R (2025) Explainable AI-driven intelligent system for precision forecasting in cardiovascular disease. Front. Med. 12:1596335. doi: 10.3389/fmed.2025.1596335

Received: 19 March 2025; Accepted: 12 June 2025;
Published: 09 July 2025.

Edited by:

Ling Sun, Nanjing Medical University, China

Reviewed by:

Qiang Su, Guangxi Zhuang Autonomous Region, China
Muhammad Saqib, Khyber Medical College, Pakistan
Jian Zhang, Fudan University, China

Copyright © 2025 Bilal, Alzahrani, Almohammadi, Saleem, Farooq and Sarwar. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Raheem Sarwar, Ui5TYXJ3YXJAbW11LmFjLnVr

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.