Next Article in Journal
Comparison of Shallow (−20 °C) and Deep Cryogenic Treatment (−196 °C) to Enhance the Properties of a Mg/2wt.%CeO2 Nanocomposite
Next Article in Special Issue
Blood Pressure Measurement Device Accuracy Evaluation: Statistical Considerations with an Implementation in R
Previous Article in Journal
Multi-Arm Trajectory Planning for Optimal Collision-Free Pick-and-Place Operations
Previous Article in Special Issue
Level of Technological Maturity of Telemonitoring Systems Focused on Patients with Chronic Kidney Disease Undergoing Peritoneal Dialysis Treatment: A Systematic Literature Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Approaches to Predict Major Adverse Cardiovascular Events in Atrial Fibrillation

by
Pedro Moltó-Balado
1,2,
Silvia Reverté-Villarroya
3,*,
Victor Alonso-Barberán
4,
Cinta Monclús-Arasa
1,
Maria Teresa Balado-Albiol
5,
Josep Clua-Queralt
6 and
Josep-Lluis Clua-Espuny
6,7,*
1
Primary Health-Care Center Tortosa Oest, Institut Català de la Salut, Primary Care Service (SAP) Terres de l’Ebre, CAP Baix Ebre Avda de Colom, 16-20, 43500 Tortosa, Spain
2
Biomedicine Doctoral Programme, Universitat Rovira I Virgili, 43500 Tortosa, Spain
3
Nursing Department, Advanced Nursing Research Group at Rovira I Virgili University, Biomedicine Doctoral Programme Campus Terres de l’Ebre, Av. De Remolins, 13, 43500 Tortosa, Spain
4
Institut d’Educació Secundària El Caminàs, C/Pintor Soler Blasco, 3, Conselleria d’Educació, 12003 Castellón, Spain
5
Primary Health-Care Center CS Borriana I, Conselleria de Sanitat, Avinguda Nules, 31, 12530 Borriana, Spain
6
Primary Health-Care Center EAP Tortosa Est, Institut Català de la Salut, CAP El Temple Plaça Carrilet, s/n, 43500 Tortosa, Spain
7
Research Support Unit Terres de l’Ebre, Institut Universitari d’Investigació en Atenció Primària Jordi Gol (IDIAPJGol) (Barcelona), Ebrictus Research Group, Terres de l’Ebre, 43500 Tortosa, Spain
*
Authors to whom correspondence should be addressed.
Technologies 2024, 12(2), 13; https://doi.org/10.3390/technologies12020013
Submission received: 16 December 2023 / Revised: 20 January 2024 / Accepted: 21 January 2024 / Published: 23 January 2024

Abstract

:
The increasing prevalence of atrial fibrillation (AF) and its association with Major Adverse Cardiovascular Events (MACE) presents challenges in early identification and treatment. Although existing risk factors, biomarkers, genetic variants, and imaging parameters predict MACE, emerging factors may be more decisive. Artificial intelligence and machine learning techniques (ML) offer a promising avenue for more effective AF evolution prediction. Five ML models were developed to obtain predictors of MACE in AF patients. Two-thirds of the data were used for training, employing diverse approaches and optimizing to minimize prediction errors, while the remaining third was reserved for testing and validation. AdaBoost emerged as the top-performing model (accuracy: 0.9999; recall: 1; F1 score: 0.9997). Noteworthy features influencing predictions included the Charlson Comorbidity Index (CCI), diabetes mellitus, cancer, the Wells scale, and CHA2DS2-VASc, with specific associations identified. Elevated MACE risk was observed, with a CCI score exceeding 2.67 ± 1.31 (p < 0.001), CHA2DS2-VASc score of 4.62 ± 1.02 (p < 0.001), and an intermediate-risk Wells scale classification. Overall, the AdaBoost ML offers an alternative predictive approach to facilitate the early identification of MACE risk in the assessment of patients with AF.

1. Introduction

Despite being the most prevalent cardiac arrhythmia, the early identification, diagnosis, and treatment of atrial fibrillation (AF) remain challenging. AF affects millions of individuals globally and is linked to a heightened risk of stroke, heart failure, and mortality [1,2,3,4]. These medical conditions collectively fall under the term Major Adverse Cardiovascular Events (MACE) and are subject to extensive research [5]. The diagnosis of AF is associated with a fourfold increase in heart failure incidence and an eightfold increase in MACE occurrence [6].
Risk factors for MACE in AF patients have been identified as age, gender, hypertension, diabetes (known as “traditional”), biomarkers, genetic variants, imaging parameters, and left atrial function [7,8,9,10]. In recent years, there has been growing interest in identifying new predictors of MACE in AF patients [11] beyond traditional ones such as obesity, chronic obstructive pulmonary disease (COPD), or chronic renal failure [7,8,12]; this novel approach is associated with a reduced risk of MACE, including mortality and thromboembolism [13].
Several proposals for stroke risk assessment in AF have been developed, such as CHA2DS2-VASc [14], the Framingham score [15], Anticoagulation and Risk Factors in Atrial Fibrillation (ATRIA) [16], Cohorts for Heart and Aging Research in Genomic Epidemiology for Atrial Fibrillation (CHARGE-AF) [17,18], and Atrial Fibrillation Research In CATalonia (AFRICAT) [19]. However, there are still challenges and limitations with clinical risk scores that restrict their applicability to certain populations. Moreover, the discriminatory ability of clinical risk scores in predicting stroke risk for an individual is at best moderate [20]. For MACE risk specifically, some studies [21,22] have proposed additional scoring systems or modifications to existing scores to better predict cardiovascular events in patients with AF. Leveraging artificial intelligence (AI) and machine learning (ML) techniques on electronic health record (EHR) data offers a potential avenue to further refine these risk prediction models. However, it is important to note that the extent of performance improvement achieved through AI and ML approaches can vary [23,24].
Therefore, more comprehensive risk prediction models incorporating a wider range of predictors or with more prognostic value are needed. Such models can be achieved using ML algorithms, which offer a promising approach in AF patients [2], as they can integrate large amounts of data from multiple sources and identify complex patterns and correlations that may not be evident using traditional statistical methods.
The heterogeneous mechanisms and risk factors associated with AF make it necessary to target personalized treatment approaches, requiring extensive patient data to identify specific patterns. AI algorithms are particularly suitable for handling high-dimensional data, predicting outcomes, and ultimately optimizing strategies for patient management [25]. Recent advances in ML have resulted in great success and have also been utilized to analyze electrocardiogram (ECG) data and predict the future occurrence of arrhythmias. Future Innovations in Novel Detection for Atrial Fibrillation (FIND-AF), an extensively scalable ML algorithm, is capable of analyzing routinely collected primary care data to identify individuals with an elevated risk of short-term AF [26]. Other studies have demonstrated the utility of machine learning-based models in AF for real-time identification of a variety of rhythms using 12-lead or single-lead ECG recordings, as well as for diagnosis, outcome prediction, disease characterization, and treatment assessment [2,27,28,29,30,31,32,33]. However, they do not address the discrimination of cardioembolic from noncardioembolic stroke among individuals with AF with high accuracy and surpassing traditional risk scores. These methods provide precise and efficient algorithms for data analysis, improving prediction accuracy, pattern identification, and task automation. If patients at higher risk of MACE could be identified, treatment strategies could be developed to potentially reduce incidence and associated complications.
The primary objectives of this study encompassed the identification of noteworthy clinical indicators associated with MACE in patients with new AF. It further aimed to assess the prognostic impact of these predictors within a community cohort, aged 65–95 years, tracked from 2015 to 2021.

2. Materials and Methods

2.1. Study Design

This was an observational study, and the data were retrospectively collected where possible, or manually collected otherwise. The specific codes of the International Classification of Diseases (ICD-10) were used. The project encompassed the broader demographic of individuals aged 65–95 years (n = 40,297) who did not have AF as part of their inclusion criteria and was conducted within the Primary Care facilities of Terres de l’Ebre, located in Catalonia, Spain, during the period spanning from 1 January 2015 to 31 December 2021.
The data were available from the electronic medical datasets (E-CAP and SAP) managed by the Catalan Health Institute (ICS), which collect information from primary care centers and hospitals in the health region anonymously and without contact with the cases included, as follows:
  • The Health Plan [33] outlines healthcare priorities in the “Terres de l’Ebre” Healthcare Region (Catalonia, Spain) from 2021 to 2025.
  • The HC3 Patient Episode Dataset provides clinical information of care on inpatient and outpatient care in Catalan hospitals.
  • The clinical database of 11 primary care teams includes comprehensive health data for 97.7% of residents, covering symptoms, tests, diagnoses, comorbidities, prescribed medication, and referrals.
  • The Integrated System of Electronic Prescription (SIRE) captures information on prescribed medications.
  • The Statistics Institute of Catalonia includes demographic information [34,35,36].
The datasets generated, used, and analyzed during the current study are available from the corresponding author on reasonable request.

2.2. Eligibility Criteria

All patients over 65 years of age from Terres de l’Ebre (N 55,459) without AF or MACE in their clinical history were considered, and the following criteria were defined:
  • Outcomes: AF patients who had a MACE.
  • Inclusion criteria: Subjects aged 65–95 years who met the inclusion criteria: high risk-AF (according to the risk model and belonging to Q4) [19], active clinical history in any of the health centers of the territory with information accessible through the shared history (HC3), without previous AF or MACE, residing in the territory, and attached to any of the Primary Care Teams (EAP) of the territory.
  • Exclusion criteria: under 65 years of age or over 95 years of age, living outside Terres de l’Ebre, a previous diagnosis of AF, treatment with anticoagulants, impaired cognitive status, Barthel score < 55 points, or pacemaker or defibrillator wearer. Non-availability or loss of accessibility to the information necessary for the study was considered a reason for exclusion.

2.3. Data and Preprocessing

The overall composition of the dataset for MACE prediction is given in Table 1 Numerical calculations and data analysis were performed using Python library version 3. Code and models used for the analysis are available online (https://github.com/vmalonsobarberan/MACE) (accessed on 15 December 2023).

2.4. Model Development

To develop ML models for estimation, we took features of the individuals with newly diagnosed AF who developed MACE, following the eligibility criteria. ML model development was performed using the SKLearn and TensorFlow libraries due to their versatility and ease of programming. For each fold, hyperparameters were tuned on training data using a randomized search after the determination of a candidate hyperparameter set. Evaluation of validation data was performed using the metrics described in the next section. Five different ML models were implemented based on the following algorithms: Random Forest, Extra Trees, AdaBoost, XGBoost, and LightGBM. They were trained on all the features (variables) used in the study to predict the development of MACE within one year as well as to predict the development of AF.
A fundamental part of the study, prior to the construction of the learning models, consisted of “Feature Engineering”, which consists of the analysis and selection of the variables, as well as the processing of the data they contain. To this end, those that only contribute noise and/or are correlated with others that have a greater influence on the objective we aimed to predict were eliminated.
The performance of MACE prediction was quantified using the following metrics: precision, recall, accuracy, and F1 score (combination of precision and recall). Two thirds of the data (36,973) were randomly selected for training and model building using different approaches and optimized to reduce the prediction error. The remaining 1/3 (18,486) was used for testing and validation. The models underwent testing using this separate test data to assess their performance on data that had not been utilized during the training phase. This evaluation aimed to determine whether the models could effectively generalize and make accurate predictions on unseen data.

2.5. Model Performance Analysis

Several metrics were used to evaluate the algorithms, including prediction robustness, completeness, sensitivity, specificity, precision, recall, accuracy, and F1 score (combination of precision and recall). Evaluation of these metrics allowed us to adjust the hyperparameters of the model to improve the most desirable aspect of the model. The model with the highest and most robust performance was chosen after evaluating the performance of the different models using the mean value of the area under the ROC curve. The assessment of our models included consideration of the standard deviation of the results to evaluate their stability, along with an analysis of sensitivity, specificity, and accuracy. After fitting and evaluating different models, the best model was selected, and the hyperparameters were adjusted to obtain the optimal results.

2.6. Model Interpretability

The Shapley Additive exPlanations (SHAP) method was used to analyze which factors were the most important and to what extent they contribute to the model’s predictions. An individual automatic explainability model was also created to allow an analysis to be made for each individual patient. The latter allows, after analyzing a patient’s variables, to explain how likely a patient with AF is to have a MACE and which factors contribute to this prediction and to what extent.

2.7. Statistical Analysis

The traditional statistical analysis of the baseline data was previously documented [6].

3. Results

3.1. Study Population Patient Characteristics

The study encompassed a cohort of 2574 individuals devoid of prior MACE incidents, with a mean age of 81.22 ± 7.91 years and a gender distribution of 52.01% women. A detailed analysis of baseline characteristics, as outlined previously [6], revealed notable distinctions among the study groups. Notably, women who experienced MACE exhibited a higher mean age (82.23 ± 7.59 years, compared to 80.53 ± 8.05 years for males, p < 0.001) and a higher prevalence of cardiovascular risk factors and comorbidities. Refer to Table 2 for a comprehensive overview of the selected variables instrumental in model construction.

3.2. Machine Learning Model

3.2.1. Comparison between the Different Models

In the comparative analysis of various pre-trained models, AdaBoost emerged as the top-performing model, showcasing exceptional metrics, with an accuracy of 0.9999, recall of 1, and an F1 score of 0.9997. This marked superiority was evident, making AdaBoost the optimal choice, balancing both sensitivity and specificity (Figure 1).
Following closely behind, XGBoost (accuracy: 0.9995; recall: 0.9971; F1: 0.9985) and LightGBM (accuracy: 0.9996; recall: 0.9977; F1: 0.9988) emerged as the second-best models in our evaluation (Table 1). Notably, Random Forest and Extra Trees, while achieving commendable Area Under the Curve values (Figure 2), did not match the performance levels achieved by AdaBoost.
The confusion matrices of the different models and cross-validation were calculated. Each model has a confusion matrix. The models were ranked by true positive rates (Table 2).

3.2.2. Predictors by Outcomes

Figure 3 shows the main prognostic factors for MACE in AF patients. From most to least important were an elevated CCI, cancer, diabetes mellitus, COPD/asthma/bronchitis, cognitive impairment, vascular disease, high values of the CHA2DS2-VASc, and Wells scale.

3.2.3. Model Interpretation

Figure 4 encapsulates a comprehensive overview of the feature contributions within the optimal model, AdaBoost. The SHAP (SHapley Additive exPlanations) summary chart delineates the significance of various characteristics, with the following five features emerging as the most influential: CCI, diabetes mellitus, cancer, Wells scale, and CHA2DS2-VASc. This SHAP summary chart not only identifies the primary features impacting the prediction but also quantifies their respective magnitudes through the SHAP values. The figures provide valuable insights into the relative importance of each feature, aiding in a nuanced understanding of the predictive dynamics within the AdaBoost model.
Figure 5, the SHAP bar plot, serves as a visual representation elucidating the overall significance of each feature in predicting the occurrence of MACE. The height of the bars directly correlates with the importance of each feature to the model—higher bars denote greater importance. This graphical representation offers a clear and straightforward depiction of the overall magnitude and relevance of individual features in influencing the predictive outcome of MACE within the model. The visual emphasis on bar height facilitates an immediate understanding of the relative contributions of different features, enhancing the interpretability of the model’s decision-making process.
The analysis delved into the influence of specific diseases, as outlined in the model, as predictors of MACE in AF patients. A CCI score exceeding 2.67 ± 1.31 (p < 0.001), a CHA2DS2-VASc score of 4.62 ± 1.02 (p < 0.001), and an intermediate-risk classification in the Wells scale were all observed to significantly elevate the risk of MACE. These findings underscore the nuanced interplay of individual patient characteristics, providing valuable insights into the factors contributing to the heightened risk of MACE in AF patients.
In Figure 6, the force chart dynamically illustrates the contributions of each feature in directing the model prediction from the base value to the ultimate result. The length of the colored bars within the chart serves as a visual indicator of the magnitude of each feature’s contribution. This graphical representation offers a dynamic and insightful portrayal of how individual features influence the model’s predictions, emphasizing the varying degrees of impact that contribute to the final outcome. The length of each bar provides a quick and intuitive assessment of the relative importance of each feature in shaping the model’s decision-making process.

4. Discussion

The study identified AdaBoost as the best-performing model for MACE prediction in AF patients. Additionally, the CCI, concurrent cancer diagnosis, diabetes mellitus, and Wells and CHA2DS2-VASc scores emerged as primary predictors of MACE among patients newly diagnosed with AF. In a previous investigation [6], subsequent adjustments for age, gender, body mass index, cardiovascular risk factors, antiplatelets, and anticoagulants revealed that only the CHA2DS2-VASc, CCI, and CONUT scores remained as independent prognostic factors for MACE in individuals with a recent diagnosis of AF [6].
The various potential benefits of the results can be described in the different sections included in the flowchart for the approach and treatment of AF [14] as risk stratification, the prevention of thromboembolism among patients with silent AF and stroke without a previous diagnosis of AF, and for specific comorbidities such as chronic coronary disease, peripheral artery disease, heart failure, chronic kidney disease, and cognitive impairment.
AF almost quintuples the risk of MACE [6], especially ischemic stroke and heart failure. The 23.5% with known AF were not receiving oral anticoagulant therapy [37]. The AF was associated with more severity, disability, and a 20% increase in stroke-related costs. The clinical benefits of appropriate anticoagulation are widely recognized, and clinicians should be aware of the importance of anticoagulation therapies in stroke prophylaxis, the occurrence of stroke, and the downstream economic burden on an increasingly aging population [38]. Patients with AF may benefit from evaluating factors such as the AdaBoost model. This information can assist in making informed decisions about treatment.
The decision to prescribe oral anticoagulants for preventing MACE in patients with intermediate annual risk of thromboembolic events, as determined by classic risk scores like CHA2DS2-VASc or an equivalent, and who are uncertain about the benefits of anticoagulation, may require additional discussion. This is due to the diverse magnitude of risk associated with each factor across different populations. Managing specific patient groups, particularly those with risk factors for MACE, can improve risk discrimination by incorporating additional factors, as seen with the AdaBoost model.
Moreover, it addresses the optimization of treatment decisions concerning the burden of AF in relation to the associated risks of thromboembolism and ischemic stroke. This involves assessing the need for anticoagulant treatment decisions in individuals experiencing either paroxysmal or persistent AF because of the predictive significance of the AF burden [39,40]. A pioneering aspect of this approach involves the comprehensive analysis of large patient cohorts and the integration of diverse data sources, including blood biomarkers, electrical signals, and medical images [41]. The significance of this research extends into the domain of Personalized Risk Assessment, providing a promising approach for the early non-invasive detection of AF. This extends to optimizing treatment approaches and anticipating long-term clinical trajectories.
The algorithm emphasizes the CCI as the primary predictor, a widely utilized tool in the medical field for predicting the risk of mortality linked to chronic health conditions. It encompasses various factors such as heart disease, diabetes, and cancer and assigns specific weights to each based on their impact on mortality. The cumulative score is then employed to estimate an individual’s overall health status and prognosis. A higher CCI score correlates with an elevated risk of adverse outcomes or mortality. Remarkably, until now, the CCI has not been previously associated with the risk of thromboembolism in patients recently diagnosed with AF. Notably, there have been instances where the use of anticoagulant therapy was linked to a lower CCI score [42]. While the CCI has undergone extensive validation and widespread use in predicting outcomes across various medical contexts, its application in specific situations, such as predicting outcomes in patients with AF [6], may not have been as comprehensively explored.
The presence of cancer emerges as the second-ranking predictor of MACE. While the algorithm does not specify the type of cancer, numerous studies have explored the connection between cancer and thromboembolism in patients with AF. Some of these studies not only identify cancer as a significant predictor of MACE, encompassing thromboembolic events [43], but also suggest that the onset of new AF is associated with an elevated risk of developing cancer [44,45]. These findings underscore the intricate interplay between AF, cancer, and thromboembolic complications, as well as the importance of considering both conditions in clinical assessment and management [46].
The Wells score has not been widely recognized as a prognostic factor for thromboembolism among patients with AF; it is typically used to assess the likelihood of deep vein thrombosis and pulmonary embolism. AF and venous thromboembolism share several common risk factors. Moreover, the presence of AF may be linked to a higher risk of developing VTE, and individuals with a high risk of experiencing VTE may also face an elevated risk of developing AF [47]. This bidirectional association highlights the potential interplay between these two conditions, suggesting that they may influence each other’s occurrence and progression. Further research is warranted to fully understand the complex relationship between AF and VTE and its implications for clinical management and preventive strategies.
Diabetes mellitus and peripheral artery disease play an important role as a predictor of MACE [7,48]. Although they are also variables included in the CHA2DS2-VASc and CCI scales, they alone are also an important variable for the development of MACE, and the significance of CHA2DS2-VASc is widely recognized among patients with nonvalvular AF receiving oral anticoagulants [6,14,49,50]. In a recent study [51], machine learning models demonstrated satisfactory performance in forecasting MACE among patients with Type 2 diabetes mellitus. Notably, these models exhibited a higher accuracy in predicting strokes than myocardial infarction and heart failure.
Eventually, the study shed light on the significant role of COPD in the development of MACE among patients with AF, in alignment with existing evidence [8,12,50,52]. Prolonged P-wave duration acts as a potent precursor to AF, a condition that may be triggered by obstructive sleep apnea [53]. The presence of COPD in AF patients may contribute to an increased risk of MACE, emphasizing the importance of considering and managing this comorbidity when evaluating cardiovascular outcomes in this patient population.
While simpler models, such as logistic regression and decision trees, are more straightforward to interpret, they frequently exhibit inferior predictive performance compared to more sophisticated algorithms, including ensembles of decision trees like XGBoost and random forests [54]. Harnessing ML [53] algorithms facilitates the early identification of subtle indicators of thromboembolism risk from intricate datasets, thereby uncovering latent relationships among the risk factors associated with AF. The LightGBM model revealed associations between ischemic stroke and various peripheral blood biomarkers (such as creatinine, glycated hemoglobin, and monocytes) not considered by CHA2DS2-VASc and demonstrated significance in predicting ischemic stroke among AF patients [55,56]. These algorithms not only facilitate the analysis and correction of potential confounding factors but also serve as powerful tools to identify and mitigate bias in the AI system. Continuous monitoring using ML algorithms offers ongoing assessment of thromboembolic risk among AF patients, contributing to the tracking of disease progression, monitoring treatment response, and promptly detecting any sudden changes in health status. Additionally, by enhancing follow-up through the prediction of patient-specific risks, these algorithms can prioritize follow-up visits and interventions, ultimately leading to improved patient outcomes.
Using the Deep Learning methodology, the results were slightly inferior to those achieved with Machine Learning (accuracy of 0.9678). The primary reason for this discrepancy may be the fact that neural networks demand a substantial amount of data to effectively learn. They are characterized by an abundance of parameters that require tuning, allowing them to grasp intricate, high-dimensional patterns. However, this proves to be a disadvantage when the dataset is limited. In instances of small datasets, these models become prone to overfitting, essentially ‘memorizing’ the training data rather than ‘learning’ the underlying pattern. Consequently, this results in suboptimal generalization performance when applied to unseen data.
The strengths of the study include the models of prediction, the high-quality datasets, and strict adherence to data privacy regulations, as well as clinical context and domain knowledge, making it easy to interpret the reasons behind their predictions. In summary, incorporating machine learning algorithms into the clinical management of individuals at high risk of AF and those with AF yields potential benefits, including personalized risk assessment, data-driven decision support, and improved patient care. However, further validation in independent studies is required.
Some limitations should be considered, as external validation is essential before effectively adopting and integrating AI systems into patient care. One crucial factor that largely determines the efficiency and accuracy of these models is the quantity of data available. For small datasets, like in our case, traditional machine learning models tend to outperform their deep learning counterparts, contrary to popular belief. AI models trained on specific datasets might not generalize well to different populations or healthcare settings, and overfitting could limit their applicability. Additionally, it is important to note that correlation does not necessarily imply causation. Establishing causal relationships between risk factors for AF and thromboembolism requires further research and experimentation. By addressing these limitations and maintaining responsible and effective AI use, we can enhance our understanding beyond not only the early detection of AF but also the risk associated with the incidence of MACE, providing opportunities to intervene in modifiable risk factors, and including aspects such as monitoring methods, detection technologies, and biomarkers linked to the association between AF and thromboembolism, ultimately leading to enhanced patient care outcomes.
Artificial intelligence-based clinical decision support systems may improve the outcomes among patients who have AF, but the efficacy of the tool in the real world is seldom reported. Future research could explore additional advantages, such as personalized risk assessment. By analyzing extensive datasets, including social determinants of health [18,57,58], biomarkers [59], multimodality imaging parameters [60,61], and nutritional status associated with AF risk [57,62], a comprehensive assessment can be made. This integration facilitates a more comprehensive and personalized risk assessment for each individual, allowing the identification of distinctive patterns and factors specific to the patient. This approach leads to more accurate risk predictions compared to traditional statistical models [6,23,63] and, consequently, may improve treatment decision making.

5. Conclusions

The application of Machine Learning, employing multiple models, indicates that the AdaBoost model is the most effective in predicting MACE in patients with newly diagnosed AF, with an accuracy of 0.9999, recall of 1, and an F1 score of 0.9997. The primary prognostic factors identified included an elevated Charlson Comorbidity Index, cancer, diabetes mellitus, COPD, cognitive impairment, vascular disease, and high values on the CHA2DS2-VASc and Wells scale. This finding contributes to the optimization of treatment decisions concerning the burden of AF in relation to the associated risks of thromboembolism and ischemic events.

Author Contributions

Conceptualization, P.M.-B., S.R.-V. and J.-L.C.-E.; methodology, P.M.-B., S.R.-V. and J.-L.C.-E.; software P.M.-B. and V.A.-B.; validation, P.M.-B., S.R.-V. and J.-L.C.-E.; formal analysis, P.M.-B., V.A.-B. and J.-L.C.-E.; investigation, P.M.-B. and J.-L.C.-E.; resources, P.M.-B. and J.-L.C.-E.; data curation, P.M.-B.; writing—original draft preparation, P.M.-B., S.R.-V. and J.-L.C.-E.; writing—review and editing, P.M.-B., S.R.-V., C.M.-A., M.T.B.-A., J.C.-Q. and J.-L.C.-E.; visualization, P.M.-B. and C.M.-A.; supervision, S.R.-V. and J.-L.C.-E.; project administration, P.M.-B.; funding acquisition, P.M.-B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

This retrospective chart review study involving human participants was in accordance with the ethical standards of the institutional and national research committee and with the 1964 Helsinki Declaration and its later amendments or comparable ethical standards. Approval was obtained from the Ethics Committee of the Institut Universitari d’Investigació en Atenció Primària Jordi Gol with the registration number 22/243-P (30 November 2022). Registry information was collected from the government-run healthcare provider responsible for all inpatient care in the county, without contact with participants, in order to gather data from the study. The manuscript does not contain clinical studies or patient data that might disclose the identity of the people under study.

Informed Consent Statement

Not applicable. For this type of study, formal consent is not required, and the requirement for the informed consent of patients was waived prior to the inclusion of their medical data in this study.

Data Availability Statement

Numerical calculations and data analysis were performed using Python library version 3. The code and models used for the analysis are available online (https://github.com/vmalonsobarberan/MACE) (15 December 2023). The datasets generated, used, and analyzed during the current study are available from the corresponding author (P.M.-B.) upon reasonable request.

Acknowledgments

The authors would like to thank the teachers and students of the specialization course in Artificial Intelligence and BigData 2022/2023 of the IES El Caminàs (Castellón, Spain) for their work, help, and support, especially A.N. Molina-Gutiérrez, the main programmer, and L.D. Taciulet, under the supervision of V. Alonso-Barberán. ChatGPT AI system, as a free-to-use tool, was used as a supporting tool for reviewing or considering options in the English translation of the original language.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rosenstrøm, S.; Risom, S.S.; Hove, J.D.; Brødsgaard, A. Living with Atrial Fibrillation: A Family Perspective. Nurs. Res. Pract. 2022, 2022, 7394445. [Google Scholar] [CrossRef] [PubMed]
  2. Sánchez de la Nava, A.M.; Atienza, F.; Bermejo, J.; Fernández-Avilés, F. Artificial intelligence for a personalized diagnosis and treatment of atrial fibrillation. Am. J. Physiol. Heart Circ. Physiol. 2021, 320, H1337–H1347. [Google Scholar] [CrossRef] [PubMed]
  3. Odutayo, A.; Wong, C.X.; Hsiao, A.J.; Hopewell, S.; Altman, D.G.; Emdin, C.A. Atrial fibrillation and risks of cardiovascular disease, renal disease, and death: Systematic review and meta-analysis. BMJ 2016, 354, i4482. [Google Scholar] [CrossRef] [PubMed]
  4. Blum, S.; Aeschbacher, S.; Coslovsky, M.; Meyre, P.B.; Reddiess, P.; Ammann, P.; Erne, P.; Moschovitis, G.; Di Valentino, M.; Shah, D.; et al. Long-term risk of adverse outcomes according to atrial fibrillation type. Sci. Rep. 2022, 12, 2208. [Google Scholar] [CrossRef]
  5. Bosco, E.; Hsueh, L.; McConeghy, K.W.; Gravenstein, S.; Saade, E. Major adverse cardiovascular event definitions used in observational analysis of administrative databases: A systematic review. BMC Med. Res. Methodol. 2021, 21, 241. [Google Scholar] [CrossRef]
  6. Moltó-Balado, P.; Reverté-Villarroya, S.; Monclús-Arasa, C.; Balado-Albiol, M.T.; Baset-Martínez, S.; Carot-Domenech, J.; Clua-Espuny, J.L. Heart Failure and Major Adverse Cardiovascular Events in Atrial Fibrillation Patients: A Retrospective Primary Care Cohort Study. Biomedicines 2023, 11, 1825. [Google Scholar] [CrossRef] [PubMed]
  7. Boriani, G.; Vitolo, M.; Diemberger, I.; Proietti, M.; Valenti, A.C.; Malavasi, V.L.; Lip, G.Y.H. Optimizing indices of atrial fibrillation susceptibility and burden to evaluate atrial fibrillation severity, risk and outcomes. Cardiovasc. Res. 2021, 117, 1–21. [Google Scholar] [CrossRef] [PubMed]
  8. Chen, X.; Lin, M.; Wang, W. The progression in atrial fibrillation patients with COPD: A systematic review and meta-analysis. Oncotarget 2017, 8, 102420–102427. [Google Scholar] [CrossRef]
  9. Zhang, J.; Johnsen, S.P.; Guo, Y.; Lip, G.Y.H. Epidemiology of Atrial Fibrillation: Geographic/Ecological Risk Factors, Age, Sex, Genetics. Card. Electrophysiol. Clin. 2021, 13, 1–23. [Google Scholar] [CrossRef]
  10. Ardashev, A.V.; Belenkov, Y.N.; Matsiukevich, M.C.; Snezhitskiy, V.A. Atrial Fibrillation and Mortality: Prognostic Factors and Direction of Prevention. Kardiologiia 2021, 61, 91–98. [Google Scholar] [CrossRef]
  11. Pastori, D.; Menichelli, D.; Lip, G.Y.H.; Sciacqua, A.; Violi, F.; Pignatelli, P.; ATHERO-AF study group†. Family History of Atrial Fibrillation and Risk of Cardiovascular Events: A Multicenter Prospective Cohort Study. Circ. Arrhythm. Electrophysiol. 2020, 13, e008477. [Google Scholar] [CrossRef] [PubMed]
  12. Raparelli, V.; Pastori, D.; Pignataro, S.F.; Vestri, A.R.; Pignatelli, P.; Cangemi, R.; Proietti, M.; Davì, G.; Hiatt, W.R.; Lip, G.Y.H.; et al. Major adverse cardiovascular events in non-valvular atrial fibrillation with chronic obstructive pulmonary disease: The ARAPACIS study. Intern. Emerg. Med. 2018, 13, 651–660. [Google Scholar] [CrossRef] [PubMed]
  13. Romiti, G.F.; Pastori, D.; Rivera-Caravaca, J.M.; Ding, W.Y.; Gue, Y.X.; Menichelli, D.; Gumprecht, J.; Kozieł, M.; Yang, P.S.; Guo, Y.; et al. Adherence to the ’Atrial Fibrillation Better Care’ Pathway in Patients with Atrial Fibrillation: Impact on Clinical Outcomes-A Systematic Review and Meta-Analysis of 285,000 Patients. Thromb. Haemost. 2022, 122, 406–414. [Google Scholar] [CrossRef]
  14. Joglar, J.A.; Chung, M.K.; Armbruster, A.L.; Benjamin, E.J.; Chyou, J.Y.; Cronin, E.M.; Deswal, A.; Eckhardt, L.L.; Goldberger, Z.D.; Gopinathannair, R.; et al. 2023 ACC/AHA/ACCP/HRS Guideline for the Diagnosis and Management of Atrial Fibrillation: A Report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines. Circulation 2023, 149, e1–e156. [Google Scholar] [CrossRef] [PubMed]
  15. D’Agostino, R.B., Sr.; Vasan, R.S.; Pencina, M.J.; Wolf, P.A.; Cobain, M.; Massaro, J.M.; Kannel, W.B. General cardiovascular risk profile for use in primary care: The Framingham Heart Study. Circulation 2008, 117, 743–753. [Google Scholar] [CrossRef]
  16. Fang, M.C.; Go, A.S.; Chang, Y.; Borowsky, L.H.; Pomernacki, N.K.; Udaltsova, N.; Singer, D.E. A new risk scheme to predict warfarin-associated hemorrhage: The ATRIA (Anticoagulation and Risk Factors in Atrial Fibrillation) Study. J. Am. Coll. Cardiol. 2011, 58, 395–401. [Google Scholar] [CrossRef]
  17. Lip, G.Y.; Nieuwlaat, R.; Pisters, R.; Lane, D.A.; Crijns, H.J. Refining clinical risk stratification for predicting stroke and thromboembolism in atrial fibrillation using a novel risk factor-based approach: The euro heart survey on atrial fibrillation. Chest 2010, 137, 263–272. [Google Scholar] [CrossRef] [PubMed]
  18. Jung, S.; Song, M.K.; Lee, E.; Bae, S.; Kim, Y.Y.; Lee, D.; Lee, M.J.; Yoo, S. Predicting Ischemic Stroke in Patients with Atrial Fibrillation Using Machine Learning. Front. Biosci. (Landmark Ed) 2022, 27, 80. [Google Scholar] [CrossRef]
  19. Muria-Subirats, E.; Clua-Espuny, J.L.; Ballesta-Ors, J.; Lorman-Carbo, B.; Lechuga-Duran, I.; Fernández-Saez, J.; Pla-Farnos, R.; On Behalf Members of Africat Group. Incidence and Risk Assessment for Atrial Fibrillation at 5 Years: Hypertensive Diabetic Retrospective Cohort. Int. J. Environ. Res. Public Health 2020, 17, 3491. [Google Scholar] [CrossRef]
  20. Wan, D.; Andrade, J.; Laksman, Z. Thromboembolic risk stratification in atrial fibrillation-beyond clinical risk scores. Rev. Cardiovasc. Med. 2021, 22, 353–363. [Google Scholar] [CrossRef]
  21. Rivera-Caravaca, J.M.; Marín, F.; Esteve-Pastor, M.A.; Raña-Míguez, P.; Anguita, M.; Muñiz, J.; Cequier, Á.; Bertomeu-Martínez, V.; Valdés, M.; Vicente, V.; et al. Usefulness of the 2MACE Score to Predicts Adverse Cardiovascular Events in Patients with Atrial Fibrillation. Am. J. Cardiol. 2017, 120, 2176–2181. [Google Scholar] [CrossRef] [PubMed]
  22. Froehlich, L.; Meyre, P.; Aeschbacher, S.; Blum, S.; Djokic, D.; Kuehne, M.; Osswald, S.; Kaufmann, B.A.; Conen, D. Left atrial dimension and cardiovascular outcomes in patients with and without atrial fibrillation: A systematic review and meta-analysis. Heart 2019, 105, 1884–1891. [Google Scholar] [CrossRef] [PubMed]
  23. Black, J.E.; Kueper, J.K.; Williamson, T.S. An introduction to machine learning for classification and prediction. Fam. Pract. 2023, 40, 200–204. [Google Scholar] [CrossRef] [PubMed]
  24. Wang, Y.C.; Xu, X.; Hajra, A.; Apple, S.; Kharawala, A.; Duarte, G.; Liaqat, W.; Fu, Y.; Li, W.; Chen, Y.; et al. Current Advancement in Diagnosing Atrial Fibrillation by Utilizing Wearable Devices and Artificial Intelligence: A Review Study. Diagnostics 2022, 12, 689. [Google Scholar] [CrossRef]
  25. Attia, Z.I.; Noseworthy, P.A.; Lopez-Jimenez, F.; Asirvatham, S.J.; Deshmukh, A.J.; Gersh, B.J.; Carter, R.E.; Yao, X.; Rabinstein, A.A.; Erickson, B.J.; et al. An artificial intelligence-enabled ECG algorithm for the identification of patients with atrial fibrillation during sinus rhythm: A retrospective analysis of outcome prediction. Lancet 2019, 394, 861–867. [Google Scholar] [CrossRef] [PubMed]
  26. Nadarajah, R.; Wu, J.; Hogg, D.; Raveendra, K.; Nakao, Y.M.; Nakao, K.; Arbel, R.; Haim, M.; Zahger, D.; Parry, J.; et al. Prediction of short-term atrial fibrillation risk using primary care electronic health records. Heart 2023, 109, 1072–1079. [Google Scholar] [CrossRef] [PubMed]
  27. Xia, Y.; Wulan, N.; Wang, K.; Zhang, H. Detecting atrial fibrillation by deep convolutional neural networks. Comput. Biol. Med. 2018, 93, 84–92. [Google Scholar] [CrossRef] [PubMed]
  28. Hill, N.R.; Ayoubkhani, D.; McEwan, P.; Sugrue, D.M.; Farooqui, U.; Lister, S.; Lumley, M.; Bakhai, A.; Cohen, A.T.; O’Neill, M.; et al. Predicting atrial fibrillation in primary care using machine learning. PLoS ONE 2019, 14, e0224582. [Google Scholar] [CrossRef]
  29. Mamoshina, P.; Bueno-Orovio, A.; Rodriguez, B. Dual Transcriptomic and Molecular Machine Learning Predicts all Major Clinical Forms of Drug Cardiotoxicity. Front. Pharmacol. 2020, 11, 639. [Google Scholar] [CrossRef]
  30. Wu, X.; Zheng, Y.; Chu, C.H.; He, Z. Extracting deep features from short ECG signals for early atrial fibrillation detection. Artif. Intell. Med. 2020, 109, 101896. [Google Scholar] [CrossRef]
  31. Jahan, M.S.; Mansourvar, M.; Puthusserypady, S.; Wiil, U.K.; Peimankar, A. Short-term atrial fibrillation detection using electrocardiograms: A comparison of machine learning approaches. Int. J. Med. Inform. 2022, 163, 104790. [Google Scholar] [CrossRef] [PubMed]
  32. Wesselius, F.J.; van Schie, M.S.; De Groot, N.M.S.; Hendriks, R.C. Digital biomarkers and algorithms for detection of atrial fibrillation using surface electrocardiograms: A systematic review. Comput. Biol. Med. 2021, 133, 104404. [Google Scholar] [CrossRef] [PubMed]
  33. Yue, Y.; Chen, C.; Liu, P.; Xing, Y.; Zhou, X. Automatic Detection of Short-Term Atrial Fibrillation Segments Based on Frequency Slice Wavelet Transform and Machine Learning Techniques. Sensors 2021, 21, 5302. [Google Scholar] [CrossRef]
  34. Pla de salut de la Regió Sanitària Terres de l’Ebre 2021–2025. Direcció General de Planificació i Recerca en Salut: Tortosa, Spain, 2022. Available online: https://scientiasalut.gencat.cat/handle/11351/7964 (accessed on 12 September 2023).
  35. Idescat. Anuario Estadístico de Cataluña. Densidad de Población. Comarcas y Aran, Ámbitos y Provincias. Available online: https://www.idescat.cat/indicadors/?id=aec&n=15227&lang=es (accessed on 12 September 2023).
  36. Idescat. Indicadors Demogràfics i de Territori. Estructura Per Edats, Envelliment i Dependència. Comarques i Aran. Available online: https://www.idescat.cat/pub/?id=inddt&n=915&lang=en (accessed on 12 September 2023).
  37. Sociedad Española de Cardiología. Atlas del Mal Control de la Anticoagulación en Pacientes con Fibrilación Auricular No Valvular. Available online: https://secardiologia.es/images/secciones/clinica/atlas-mal-control-anticoagulacion-INFOGRAFIA.pdf (accessed on 23 June 2023).
  38. Li, X.; Tse, V.C.; Au-Doung, L.W.; Wong, I.C.; Chan, E.W. The impact of ischaemic stroke on atrial fibrillation-related healthcare cost: A systematic review. Europace 2017, 19, 937–947. [Google Scholar] [CrossRef] [PubMed]
  39. Papakonstantinou, P.E.; Tsioufis, K. Optimizing Anticoagulation Management in Atrial Fibrillation: Beyond the Guidelines. How and for Whom? J. Cardiovasc. Pharmacol. 2023, 81, 397–399. [Google Scholar] [CrossRef] [PubMed]
  40. Verheugt, F.W.A.; Fox, K.A.A.; Virdone, S.; Ambrosio, G.; Gersh, B.J.; Haas, S.; Pieper, K.S.; Kayani, G.; Camm, A.J.; Parkhomenko, A.; et al. Outcomes of Oral Anticoagulation in Atrial Fibrillation Patients With or Without Comorbid Vascular Disease: Insights From the GARFIELD-AF Registry. Am. J. Med. 2023, 136, 1187–1195. [Google Scholar] [CrossRef]
  41. Haq, I.U.; Chhatwal, K.; Sanaka, K.; Xu, B. Artificial Intelligence in Cardiovascular Medicine: Current Insights and Future Prospects. Vasc. Health Risk Manag. 2022, 18, 517–528. [Google Scholar] [CrossRef]
  42. Lahoz, C.; Cardenas, J.; Salinero-Fort, M.Á.; Mostaza, J.M. Prevalence of atrial fibrillation and associated anticoagulant therapy in the nonagenarian population of the Community of Madrid, Spain. Geriatr. Gerontol. Int. 2019, 19, 203–207. [Google Scholar] [CrossRef]
  43. Khorana, A.A.; Mackman, N.; Falanga, A.; Pabinger, I.; Noble, S.; Ageno, W.; Moik, F.; Lee, A.Y.Y. Cancer-associated venous thromboembolism. Nat. Rev. Dis. Primers. 2022, 8, 11–24. [Google Scholar] [CrossRef]
  44. Guha, A.; Fradley, M.G.; Dent, S.F.; Weintraub, N.L.; Lustberg, M.B.; Alonso, A.; Addison, D. Incidence, risk factors, and mortality of atrial fibrillation in breast cancer: A SEER-Medicare analysis. Eur. Heart J. 2022, 43, 300–312. [Google Scholar] [CrossRef]
  45. Zhang, M.; Li, L.L.; Zhao, Q.Q.; Peng, X.D.; Wu, K.; Li, X.; Ruan, Y.F.; Bai, R.; Liu, N.; Ma, C.S. The Association of New-Onset Atrial Fibrillation and Risk of Cancer: A Systematic Review and Meta-Analysis. Cardiol. Res. Pract. 2020, 27, 2372067. [Google Scholar] [CrossRef] [PubMed]
  46. Sorigue, M.; Miljkovic, M.D. Atrial Fibrillation and Stroke Risk in Patients with Cancer: A Primer for Oncologists. J. Oncol. Pract. 2019, 15, 641–650. [Google Scholar] [CrossRef] [PubMed]
  47. Lutsey, P.L.; Norby, F.L.; Alonso, A.; Cushman, M.; Chen, L.Y.; Michos, E.D.; Folsom, A.R. Atrial fibrillation and venous thromboembolism: Evidence of bidirectionality in the Atherosclerosis Risk in Communities Study. J. Thromb. Haemost. 2018, 16, 670–679. [Google Scholar] [CrossRef] [PubMed]
  48. Anandasundaram, B.; Lane, D.A.; Apostolakis, S.; Lip, G.Y. The impact of atherosclerotic vascular disease in predicting a stroke, thromboembolism and mortality in atrial fibrillation patients: A systematic review. J. Thromb. Haemost. 2013, 11, 975–987. [Google Scholar] [CrossRef] [PubMed]
  49. Nabauer, M.; Oeff, M.; Gerth, A.; Wegscheider, K.; Buchholz, A.; Haeusler, K.G.; Hanrath, P.; Meinertz, T.; Ravens, U.; Sprenger, C.; et al. Prognostic markers of all-cause mortality in patients with atrial fibrillation: Data from the prospective long-term registry of the German Atrial Fibrillation NETwork (AFNET). Europace 2021, 23, 1903–1912. [Google Scholar] [CrossRef] [PubMed]
  50. Lip, G.Y.H.; Murphy, R.R.; Sahiar, F.; Ingall, T.J.; Dhamane, A.D.; Ferri, M.; Hlavacek, P.; Preib, M.T.; Keshishian, A.; Russ, C.; et al. Risk Levels and Adverse Clinical Outcomes Among Patients with Nonvalvular Atrial Fibrillation Receiving Oral Anticoagulants. JAMA Netw. Open 2022, 5, e2229333. [Google Scholar] [CrossRef]
  51. Abegaz, T.M.; Baljoon, A.; Kilanko, O.; Sherbeny, F.; Ali, A.A. Machine learning algorithms to predict major adverse cardiovascular events in patients with diabetes. Comput. Biol. Med. 2023, 164, 107289. [Google Scholar] [CrossRef]
  52. Shao, X.H.; Yang, Y.M.; Zhu, J.; Zhang, H.; Liu, Y.; Gao, X.; Yu, L.T.; Liu, L.S.; Zhao, L.; Yu, P.F.; et al. Comparison of the clinical features and outcomes in two age-groups of elderly patients with atrial fibrillation. Clin. Interv. Aging 2014, 9, 1335–1342. [Google Scholar] [CrossRef]
  53. Ueda, A.; Kasagi, S.; Maeno, K.I.; Naito, R.; Kumagai, T.; Kimura, Y.; Kato, M.; Kawana, F.; Tomita, Y.; Narui, K.; et al. Cross-Sectional Relationship Between Atrial Conduction Delay and Arterial Stiffness in Patients with Obstructive Sleep Apnea. Vasc. Health Risk Manag. 2023, 19, 733–740. [Google Scholar] [CrossRef]
  54. Silva, G.F.S.; Fagundes, T.P.; Teixeira, B.C.; Chiavegatto Filho, A.D.P. Machine Learning for Hypertension Prediction: A Systematic Review. Curr. Hypertens. Rep. 2022, 24, 523–533. [Google Scholar] [CrossRef]
  55. Parikh, R.B.; Teeple, S.; Navathe, A.S. Addressing Bias in Artificial Intelligence in Health Care. JAMA 2019, 322, 2377–2378. [Google Scholar] [CrossRef] [PubMed]
  56. Areti, P.; Daniel, H.; Greg, S.; Eirini, M.; Panos, D. Prediction of Atrial Fibrillation and Stroke Using Machine Learning Models in UK Biobank. (Available at SSRN). Available online: https://www.medrxiv.org/content/10.1101/2022.10.28.22281669v1 (accessed on 10 November 2023). [CrossRef]
  57. Arero, G.; Arero, A.G.; Mohammed, S.H.; Vasheghani-Farahani, A. Prognostic Potential of the Controlling Nutritional Status (CONUT) Score in Predicting All-Cause Mortality and Major Adverse Cardiovascular Events in Patients with Coronary Artery Disease: A Meta-Analysis. Front. Nutr. 2022, 9, 850641. [Google Scholar] [CrossRef]
  58. Essien, U.R.; Kornej, J.; Johnson, A.E. Social determinants of atrial fibrillation. Nat. Rev. Cardiol. 2021, 118, 763–773. [Google Scholar] [CrossRef] [PubMed]
  59. Palà, E.; Bustamante, A.; Clúa-Espuny, J.L.; Acosta, J.; González-Loyola, F.; Santos, S.D.; Ribas-Segui, D.; Ballesta-Ors, J.; Penalba, A.; Giralt, M.; et al. Blood-biomarkers and devices for atrial fibrillation screening: Lessons learned from the AFRICAT (Atrial Fibrillation Research in CATalonia) study. PLoS ONE 2022, 17, e0273571. [Google Scholar] [CrossRef]
  60. Gentille-Lorente, D.; Hernández-Pinilla, A.; Satue-Gracia, E.; Muria-Subirats, E.; Forcadell-Peris, M.J.; Gentille-Lorente, J.; Ballesta-Ors, J.; Martín-Lujan, F.M.; Clua-Espuny, J.L. Echocardiography and Electrocardiography in Detecting Atrial Cardiomyopathy: A Promising Path to Predicting Cardioembolic Strokes and Atrial Fibrillation. J. Clin. Med. 2023, 12, 7315. [Google Scholar] [CrossRef] [PubMed]
  61. López-Galvez, R.; Rivera-Caravaca, J.M.; Roldán, V.; Orenes-Piñero, E.; Esteve-Pastor, M.A.; López-García, C.; Saura, D.; González, J.; Lip, G.Y.H.; Marín, F. Imaging in atrial fibrillation: A way to assess atrial fibrosis and remodeling to assist decision-making. Am. Heart J. 2023, 258, 1–16. [Google Scholar] [CrossRef]
  62. Zhang, S.; Stubbendorff, A.; Ericson, U. The EAT-Lancet diet, genetic susceptibility and risk of atrial fibrillation in a population-based cohort. BMC Med. 2023, 21, 280. [Google Scholar] [CrossRef]
  63. Li, Z.; Zhang, X.; Ding, L.; Jing, J.; Gu, H.-Q.; Jiang, Y.; Meng, X.; Du, C.; Wang, C.; Wang, M.; et al. Rationale and design of the GOLDEN BRIDGE II: A cluster-randomised multifaceted intervention trial of an artificial intelligence-based cerebrovascular disease clinical decision support system to improve stroke outcomes and care quality in China. Stroke Vasc. Neurol. 2023, svn-2023. [Google Scholar] [CrossRef]
Figure 1. Comparison of the performance of different models.
Figure 1. Comparison of the performance of different models.
Technologies 12 00013 g001
Figure 2. Comparison of AUC results between the machine learning models.
Figure 2. Comparison of AUC results between the machine learning models.
Technologies 12 00013 g002
Figure 3. Strength of the main prognostic factors for MACE.
Figure 3. Strength of the main prognostic factors for MACE.
Technologies 12 00013 g003
Figure 4. SHAP summary plot of optimum model. (A) The warm SHAP plot shows the distribution of SHAP values for each characteristic. (B) Bar chart according to feature importance.
Figure 4. SHAP summary plot of optimum model. (A) The warm SHAP plot shows the distribution of SHAP values for each characteristic. (B) Bar chart according to feature importance.
Technologies 12 00013 g004
Figure 5. SHAP bar plot showing the overall magnitude and importance of the features.
Figure 5. SHAP bar plot showing the overall magnitude and importance of the features.
Technologies 12 00013 g005
Figure 6. Dynamic force chart.
Figure 6. Dynamic force chart.
Technologies 12 00013 g006
Table 1. Comparison of the performance of different models.
Table 1. Comparison of the performance of different models.
Machine Learning ModelAccuracyPrecisionRecallF1 ScoreSensitivitySpecificityPPVNPVAUC
Random Forest96.78%0.84560.92630.88410.98850.84560.97410.926396.78%
Extra Trees98.82%0.96410.95540.95970.99230.96410.99380.955498.82%
AdaBoost99.99%0.999410.999710.99940.9999199.99%
XGBoost99.95%10.99710.99850.9995110.99799.95%
LightGBM99.96%10.99770.99880.9996110.997799.96%
Table 2. Distribution of AF patients according to the presence of MACE.
Table 2. Distribution of AF patients according to the presence of MACE.
VariablesNo MACE(%)MACE(%)pAll
All152759.32%104740.68% 2574
Woman78551.41%55853.30%0.3561343
Age average80.53 ± 8.05 82.23 ± 7.59 <0.00181.22 ± 7.91
Hypertension, arterial111272.82%83379.56%<0.0011945
Diabetes mellitus40626.59%36334.67%<0.001769
Dyslipemia69245.32%52450.05%0.0201216
Vascular disease593.86%28627.32%<0.001345
Dementia/cognitive impairment17411.39%13612.99%<0.001310
Liver disease60.39%40.38%1.00010
Renal failure33922.20%33732.19%<0.001676
Cancer51633.79%34032.47%0.496856
Thyroid disease1097.14%10610.12%0.018215
OSAHS 1603.93%666.30%0.007126
COPD 222514.73%22221.20%<0.001447
Inflammatory disease (Crohn’s and Colitis)90.59%70.67%0.80416
Deep vein thrombosis201.31%171.62%0.50637
Weight (kg)77.47 ± 5.7 78.03 ± 16.51 0.03877.69 ± 16.04
BMI 329.32 ± 5.28 29.75 ± 5.51 0.04129.49 ± 5.38
Heart rate/min76.05 ± 1847 75.71 ± 18.47 0.62575.91 ± 18.47
Cholesterol mg/dL184.23 ± 38.07 164.98 ± 38.14 <0.001176.4 ± 39.24
ProBNP (pg/mL)1550 3301.75 ± 2882.7 0.6252951.4 ± 2616.52
Dimer D (ng/mL)1753.59 ± 2714.47 1319.72 ± 2954.13 0.3371532.56 ± 2838.47
Glomerular filtration rate (mL/min/1.73 m2)66.11 ± 19.8 59.85 ± 20.74 <0.00163.48 ± 20.43
Serum albumin (g/dL)4.94 ± 5.43 5.04 ± 14.85 0.8354.98 ± 10.68
Lymphocytes (×103/μL)2.12 ± 1.11 2.02 ± 1.62 0.0722.08 ± 1.34
Statins50533.07%60757.98%<0.001945
Anticoagulation120779.04%78775.16%0.0211994
Antivitamin-K61340.14%33131.61%<0.001944
NOAC 459538.96%45843.74%0.0151053
Anti-aggregants674.38%747.06%0.003141
Pfeiffer score ± SD2.91 ± 3.1 2.61 ± 2.8 0.2182.75 ± 2.94
CHA2DS2-VASc ± SD3.26 ± 0.95 4.62 ± 1.02 <0.0013.81 ± 1.20
CCI 5 ± SD1.24 ± 1.19 2.67 ± 1.31 <0.0011.82 ± 1.43
CONUT score ± SD1.31 ± 0.54 1.48 ± 0.61 <0.0011.38 ± 0.58
Wells score ± SD1.35 ± 0.48 1.33 ± 0.47 0.4151.34 ± 0.47
COVID-191509.82%11010.51%0.573260
Death127983.76%77774.21%<0.0012056
1. OSAHS: obstructive sleep apnea-hypopnea syndrome; 2. COPD: chronic obstructive pulmonary disease; 3. BMI: Body Mass Index; 4. NOAC: new oral anticoagulants; 5. CCI: Charlson Comorbidity Index.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Moltó-Balado, P.; Reverté-Villarroya, S.; Alonso-Barberán, V.; Monclús-Arasa, C.; Balado-Albiol, M.T.; Clua-Queralt, J.; Clua-Espuny, J.-L. Machine Learning Approaches to Predict Major Adverse Cardiovascular Events in Atrial Fibrillation. Technologies 2024, 12, 13. https://doi.org/10.3390/technologies12020013

AMA Style

Moltó-Balado P, Reverté-Villarroya S, Alonso-Barberán V, Monclús-Arasa C, Balado-Albiol MT, Clua-Queralt J, Clua-Espuny J-L. Machine Learning Approaches to Predict Major Adverse Cardiovascular Events in Atrial Fibrillation. Technologies. 2024; 12(2):13. https://doi.org/10.3390/technologies12020013

Chicago/Turabian Style

Moltó-Balado, Pedro, Silvia Reverté-Villarroya, Victor Alonso-Barberán, Cinta Monclús-Arasa, Maria Teresa Balado-Albiol, Josep Clua-Queralt, and Josep-Lluis Clua-Espuny. 2024. "Machine Learning Approaches to Predict Major Adverse Cardiovascular Events in Atrial Fibrillation" Technologies 12, no. 2: 13. https://doi.org/10.3390/technologies12020013

APA Style

Moltó-Balado, P., Reverté-Villarroya, S., Alonso-Barberán, V., Monclús-Arasa, C., Balado-Albiol, M. T., Clua-Queralt, J., & Clua-Espuny, J. -L. (2024). Machine Learning Approaches to Predict Major Adverse Cardiovascular Events in Atrial Fibrillation. Technologies, 12(2), 13. https://doi.org/10.3390/technologies12020013

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop