Application of machine learning model in predicting the likelihood of blood transfusion after hip fracture surgery
- PMID: 37733228
- DOI: 10.1007/s40520-023-02550-4
Application of machine learning model in predicting the likelihood of blood transfusion after hip fracture surgery
Abstract
Objective: Anemia is one of the common adverse reactions after hip fracture surgery. The traditional method to solve anemia is allogeneic transfusion. However, the transfusion may lead to some complications such as septicemia and fever. So far, few studies have reported roles of machine learning in predicting whether blood transfusion is needed or not after hip fracture surgery. Therefore, the purpose of this study is to develop machine learning models to predict the likelihood of postoperative blood transfusion in patients undergoing hip fracture surgery.
Methods: This study enrolled 1355 patients who underwent hip fracture surgery at the Affiliated Hospital of Qingdao University from January 2016 to December 2021. Among all patients, 210 cases received postoperative blood transfusion. All patients were randomly divided into a training group and a testing group at a ratio of 7:3. In the training group, univariate and multivariate logistic regression analyses were used to determine independent risk factors for the postoperative transfusion. Then, based on these independent risk factors, tenfold cross-validation method was utilized to develop five machine learning models, including logistic, multilayer perceptron (MLP), extreme gradient boosting (XGBoost), random forest (RF), and support vector machine (SVM). The receiver operating characteristic (ROC) curve, area under ROC curve (AUC), and Matthews correlation coefficient (MCC) were generated to evaluate the performance of the models. Calibration plot and decision curve analysis (DCA) were used to test the performance, stability, and clinical applicability of the models. The models were validated using the testing group; and the ROC curve, MCC, calibration plot, and DCA curves were also generated to validate the performance, stability, and clinical applicability of the models. To further verify the robustness of the model, we randomly grabbed 70% of the samples in the testing set, performed 1000 iterations, and calculated the AUC and confidence interval of the five models. Finally, we used SHapley Additive exPlanations (SHAP) to explain these models.
Results: Multivariate logistic regression analysis showed that there were 8 independent risk factors, including age, blood transfusion history, albumin (ALB), globulin (GLO), total bilirubin (TBIL), indirect bilirubin (IBIL), hemoglobin (HB), and blood loss > 200 ml. We finally selected five independent risk factors including HB, GLO, age, IBIL, and blood loss > 200 ml. Based on these five independent risk factors, we generated six characteristic variables, namely HB, HB × HB, HB × blood loss, GLO × HB, age, age × IBIL, and established five machine learning models using a tenfold cross-validation method. In the training group, the AUC values of logistic, RF, MLP, SVM, and XGB were 0.9320, 0.8911, 0.9327, 0.9225, and 0.8825, respectively, and the average AUC was 0.9122 ± 0.0212. The MCC values were 0.65, 0.77, 0.65, 0.66, and 0.68, respectively, and the calibration plot and DCA performed well. In the testing group the AUC values of logistic, RF, MLP, SVM, and XGB were 0.8483, 0.7978, 0.8576, 0.8598, and 0.8216, respectively. The average AUC was 0.8370 ± 0.0238, and the MCC values were 0.41, 0.35, 0.40, 0.41, and 0.41, respectively. The calibration plot and DCA in the testing group also showed good performance. The AUC values and confidence intervals of the 1000-iteration model were: logistic (AUC, min confidence interval [CI]-max confidence interval [CI] 0.848, 0.804-0.903), RF (AUC, minCI-maxCI 0.797, 0.734-0.857), MLP (AUC, minCI-maxCI 0.858, 0.812-0.902), SVM (AUC, minCI-maxCI 0.859, 0.819-0.910), and XGB (AUC, minCI-maxCI 0.821, 0.764-0.894). The model performed well. Finally, according to SHAP, among all five models, HB played the most important role in model prediction and interpretation.
Conclusion: The five models we developed all performed well in predicting the likelihood of blood transfusion after hip fracture surgery. Therefore, we believed that the prediction model based on machine learning had great application prospects in clinical practice, which could help clinicians better predict the risk of blood transfusion after hip fracture surgery.
Keywords: Hip fracture; Machine learning model; Postoperative blood transfusion; Prediction; Surgery.
© 2023. The Author(s), under exclusive licence to Springer Nature Switzerland AG.
Similar articles
-
[Constructing a predictive model for the death risk of patients with septic shock based on supervised machine learning algorithms].Zhonghua Wei Zhong Bing Ji Jiu Yi Xue. 2024 Apr;36(4):345-352. doi: 10.3760/cma.j.cn121430-20230930-00832. Zhonghua Wei Zhong Bing Ji Jiu Yi Xue. 2024. PMID: 38813626 Chinese.
-
[Comparison of machine learning and Logistic regression model in predicting acute kidney injury after cardiac surgery: data analysis based on MIMIC-III database].Zhonghua Wei Zhong Bing Ji Jiu Yi Xue. 2022 Nov;34(11):1188-1193. doi: 10.3760/cma.j.cn121430-20210223-00279. Zhonghua Wei Zhong Bing Ji Jiu Yi Xue. 2022. PMID: 36567564 Chinese.
-
Development and Validation of a Machine Learning Algorithm to Predict the Risk of Blood Transfusion after Total Hip Replacement in Patients with Femoral Neck Fractures: A Multicenter Retrospective Cohort Study.Orthop Surg. 2024 Aug;16(8):2066-2080. doi: 10.1111/os.14160. Epub 2024 Jul 1. Orthop Surg. 2024. PMID: 38951965 Free PMC article.
-
Interpretable machine learning model to predict surgical difficulty in laparoscopic resection for rectal cancer.Front Oncol. 2024 Feb 6;14:1337219. doi: 10.3389/fonc.2024.1337219. eCollection 2024. Front Oncol. 2024. PMID: 38380369 Free PMC article. Review.
-
Artificial intelligence in clinical care amidst COVID-19 pandemic: A systematic review.Comput Struct Biotechnol J. 2021;19:2833-2850. doi: 10.1016/j.csbj.2021.05.010. Epub 2021 May 7. Comput Struct Biotechnol J. 2021. PMID: 34025952 Free PMC article. Review.
Cited by
-
The association of life's essential 8 with prevalence of chronic respiratory diseases in adults: insights from NHANES 2007-2018.BMC Pulm Med. 2025 Jul 9;25(1):331. doi: 10.1186/s12890-025-03775-x. BMC Pulm Med. 2025. PMID: 40634937 Free PMC article.
-
Development of machine learning models to predict perioperative blood transfusion in hip surgery.BMC Med Inform Decis Mak. 2024 Jun 5;24(1):158. doi: 10.1186/s12911-024-02555-7. BMC Med Inform Decis Mak. 2024. PMID: 38840126 Free PMC article.
References
-
- Lu X, Wang Z, Chong F et al (2022) A new nomogram model for predicting 1-year all-cause mortality after hip arthroplasty in nonagenarians with hip fractures: a 20-year period retrospective cohort study. Front Surg 9:926745. https://doi.org/10.3389/fsurg.2022.926745 - DOI - PubMed - PMC
-
- Zhang C, Feng J, Wang S et al (2020) Incidence of and trends in hip fracture among adults in urban China: a nationwide retrospective cohort study. PLoS Med 17:e1003180. https://doi.org/10.1371/journal.pmed.1003180 - DOI - PubMed - PMC
-
- Christiano AV, Elsevier HC, Sarker S et al (2021) Improving outcomes after hip fracture at a safety net hospital with a standardised hip fracture protocol. Hip Int 31:696–699. https://doi.org/10.1177/1120700020919332 - DOI - PubMed
-
- Pan L, Liu Z, Wu H et al (2023) Construction and validation of a nomogram for predicting acute kidney injury after hip fracture surgery. Clin Interv Aging 18:181–191. https://doi.org/10.2147/cia.S399314 - DOI - PubMed - PMC
-
- Mueller MM, Van Remoortel H, Meybohm P et al (2019) Patient blood management: recommendations from the 2018 Frankfurt consensus conference. JAMA 321:983–997. https://doi.org/10.1001/jama.2019.0554 - DOI - PubMed
Publication types
MeSH terms
Substances
LinkOut - more resources
Full Text Sources
Medical
Miscellaneous