Work

Construction and validation of a machine learning model to predict heart failure in patients with rheumatoid arthritis

Year: 2026
Type: article
Study design: Observational Study
Abstract: Background Patients with rheumatoid arthritis (RA) associated cardiovascular disease (CVD) still exhibit progressive heart failure (HF) even after treatment. Identification of these individuals and timely implementation of interventions are crucial for mitigating the incidence of HF. Therefore, the purpose of this study is to construct an interpretable machine learning model to predict HF in RA patients. Methods The medical records of 553 RA patients treated from 2014 to 2024 were reviewed. Feature selection, five-fold cross-validation, hyperparameter tuning, and threshold selection were performed exclusively in the training cohort. Six machine learning algorithms were used for modeling. The final logistic-regression nomogram was assessed using discrimination, calibration, Brier score, Hosmer-Lemeshow testing, decision-curve analysis, 1,000-bootstrap internal validation, and a later-period same-center temporal validation cohort (n = 100). QRESEARCH risk estimator (QRISK)3 was evaluated as an exploratory cardiovascular-risk benchmark, and an HF-adapted QRISK3 extension model was additionally examined. Results Eight predictors were retained for the final logistic model: inflammatory bowel disease (IBD), C-reactive protein (CRP), antibody against cyclic citrullinated peptide (anti-CCP), smoking status, systolic blood pressure(SBP), age, D-dimer and leflunomide (LFMT) treatment. The logistic model achieved an AUC of 0.945 (95% CI 0.914–0.976) in the internal validation cohort, with sensitivity 0.758 (95% CI 0.659–0.840), specificity 0.944 (95% CI 0.862–0.984), Brier score 0.104, calibration intercept 0.419, and calibration slope 1.383. In the QRISK3-eligible validation subset (n = 156), the AUCs were 0.762 for original QRISK3, 0.935 for the QRISK3-HF extension, and 0.945 for the eight-variable nomogram; both study models outperformed original QRISK3 (BH-adjusted P < 0.001), whereas QRISK3-HF and the nomogram did not differ significantly (P = 0.2473). Temporal validation showed attenuated performance (multiple-imputation pooled AUC 0.773, 95% CI 0.668–0.853). Conclusions QRISK3 showed lower discrimination for HF, whereas adding RA-related variables substantially improved its performance. We developed a machine learning predictive model (eight-variable logistic-regression nomogram) to estimate the HF risk in RA patients. The model exhibited strong discrimination and acceptable internal calibration, and an online Python-based prediction web platform was developed for rapid identification of high-risk patients.
Language: English
Open Access status: gold
Estimated APC paid: $3,801
OpenAlex ID: W7123594664
FWCI:
Cites: 27
Cited by:
Related to: 10