Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Dec 19;24(1):467.
doi: 10.1186/s12871-024-02832-y.

An explainable and supervised machine learning model for prediction of red blood cell transfusion in patients during hip fracture surgery

Affiliations

An explainable and supervised machine learning model for prediction of red blood cell transfusion in patients during hip fracture surgery

Yongchang Zhou et al. BMC Anesthesiol. .

Abstract

Aim: The study aimed to develop a predictive model with machine learning (ML) algorithm, to predict and manage the need for red blood cell (RBC) transfusion during hip fracture surgery.

Methods: Data of 2785 cases that underwent hip fracture surgery from April 2016 to May 2022 were collected, covering demographics, medical history and comorbidities, type of surgery and preoperative laboratory results. The primary outcome was the intraoperative RBC transfusion. The predicting performance of six algorithms were respectively evaluated with the area under the receiver operating characteristic (AUROC). The SHapley Additive exPlanations (SHAP) package was applied to interpret the Random Forest (RF) model. Data from 122 patients at The Third Affiliated Hospital of Sun Yat-sen University were collected for external validation.

Results: 1417 patients (50.88%) were diagnosed with preoperative anemia (POA) and 209 patients (7.5%) received intraoperative RBC transfusion. Longer estimated duration of surgery, POA, older age, hypoproteinemia, and surgery of internal fixation were revealed as the top 5 important variables contributing to intraoperative RBC transfusion. Among the six ML models, the RF model performed the best, which achieved the highest AUC (0.887, CI 0.838 to 0.926) in the internal validation set. Further, it achieved a comparable AUC of 0.834(0.75, 0.911) in the external validation set.

Conclusion: Our study firstly demonstrated that the RF model with 10 common variables might predict intraoperative RBC transfusion in hip fracture patients.

Keywords: Hip fracture; Machine learning; Predictive model; Red blood cell transfusion; SHapley Additive exPlanations.

PubMed Disclaimer

Conflict of interest statement

Declarations. Ethics approval and consent to participate: The present study was a retrospective study, which did not interfere with hip fracture surgeries in any way. All of the clinical judgments were made by clinicians for medical reasons. No written consent was required in view of the purely observational nature of the study. No identifiable data of the patients were recorded during the whole study. The study was approved by the ethics committee of Guangdong Provincial Hospital of Chinese Medicine ((No. ZE2023-201–01). Consent for publication: Not applicable. Competing interests: The authors declare no competing interests.

Figures

Fig. 1
Fig. 1
The framework for developing an ML-based predictive model
Fig. 2
Fig. 2
Primary predictive variables screening based on LASSO regression. A The horizontal axis lambda represents the penalty term in LASSO, and the vertical axis represents the coefficients of the variables in the LASSO regression. The closer the lambda value is to 1, the smaller the coefficients of the variables in the LASSO regression, and vice versa. The optimal lambda value of 0.00003 was obtained by cross validation method, at which point the coefficients of 10 variables were not equal to 0, thus resulting in 10 variables being selected by the LASSO. B The horizontal axis represents the coefficients of the variables in the LASSO regression, where the coefficient of Hypertension is 0, and the coefficients of other variables are not 0, thus resulting in 10 variables being selected by the LASSO variable selection
Fig. 3
Fig. 3
Receiver operating characteristic curves for the machine learning model and logistic regression, Extreme Gradient Boosting(XGBOOST), Gradient Boosting Decision Tree(GBDT), Support Vector Machine(SVM), Multi-Layer Perceptron(MLP), Logistic Regression(LR), Radom Forest(RF)
Fig. 4
Fig. 4
Performance of RF model on the internal validation set and on the external validation set
Fig. 5
Fig. 5
Feature importance ranking based on Shapley Addictive exPlanations (SHAP) values in RF model
Fig. 6
Fig. 6
Examples of website usage. Entering the input value determined the transfusion requirements and displayed how each value contributed to the prediction. A Patient No.1 needs RBC transfusion; B Patient No.2 does not need RBC transfusion

Similar articles

References

    1. Johnell O, Kanis JA. An estimate of the worldwide prevalence and disability associated with osteoporotic fractures. Osteoporos Int. 2006;17(12):1726–33. - PubMed
    1. Gruson KI, Aharonoff GB, Egol KA, Zuckerman JD, Koval KJ. The relationship between admission hemoglobin level and outcome after hip fracture. J Orthop Trauma. 2002;16(1):39–44. - PubMed
    1. Palm H, Hip Fracture: The choice of surgery. In: Falaschi P, Marsh D, editors. Orthogeriatrics: the management of older patients with fragility fractures. Cham (CH): Springer Copyright 2021, The Author(s); 2021. p. 125–41. - PubMed
    1. Bierbaum BE, Callaghan JJ, Galante JO, Rubash HE, Tooms RE, Welch RB. An analysis of blood management in patients having a total hip or knee arthroplasty. J Bone Joint Surg Am. 1999;81(1):2–10. - PubMed
    1. Spahn DJA. Anemia and patient blood management in hip and knee surgery: a systematic review of the literature. 2010;113(2):482–95. - PubMed

LinkOut - more resources