SHAP analysis indicated that postoperative NLR and CRP made substantial contributions to model predictions, while individual-level SHAP visualizations further delineated the specific contributions of each variable to patient-level risk estimation.<h4>Conclusion</h4>We developed and externally validated a machine learning-based predictive model for postoperative HF in elderly patients. The gene discussed is CRP; the disease is hydrops fetalis.