ALB and type 2 diabetes mellitus: Rankings of variable importance based on the Gain metric showed that B-type natriuretic peptide over 100 pg/mL had the highest importance score, followed by albumin, E/e', age and high-sensitivity cardiac troponin T.<h4>Conclusions</h4>This study found XGBoost to be the optimal machine learning algorithm in identifying HFpEF in T2DM patients.