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
. 2025 Sep 11:12:1471746.
doi: 10.3389/fmed.2025.1471746. eCollection 2025.

Construction and validation of a perioperative blood transfusion model for patients undergoing total hip arthroplasty with osteonecrosis of the femoral head based on machine learning

Affiliations

Construction and validation of a perioperative blood transfusion model for patients undergoing total hip arthroplasty with osteonecrosis of the femoral head based on machine learning

Zhen-Dong Sun et al. Front Med (Lausanne). .

Abstract

Background: This study aimed to construct a predictive model utilizing multiple machine learning (ML) models to estimate the likelihood of perioperative blood transfusion in patients with osteonecrosis of the femoral head (ONFH) who underwent total hip arthroplasty (THA).

Methods: Patients diagnosed with ONFH who underwent THA at our institution between October 2018 and October 2023 were included in the study. Feature selection was conducted using Lasso regression and correlation analysis. An unbiased evaluation framework incorporating nested resampling was established to assess four ML models. A nomogram was subsequently developed based on the selected features.

Results: Seven features were identified, namely blood loss, hemoglobin (HGB) levels, weight, body temperature, systolic pressure, and direct bilirubin. Four ML models were constructed based on these features. The area under the curve (AUC) values for Random Forest, Extreme Gradient Boosting, Light Gradient Boosting Machine, and Logistic Regression (LR) were 1.00, 1.00, 1.00, and 0.93 in the internal validation set, and 0.89, 0.90, 0.88, and 0.91 in the external test set, respectively. Furthermore, a nomogram model based on LR was developed using the aforementioned seven features, yielding AUC values of 0.95 and 0.90 for the training and test sets, respectively, thereby surpassing the AUC values of preoperative HGB levels (0.80 and 0.76).

Conclusion: Both the ML models and the nomogram exhibit significant potential for forecasting the likelihood of perioperative blood transfusion in patients with ONFH undergoing THA, which may aid clinicians in improving the accuracy of blood transfusion predictions.

Keywords: blood transfusion; machine learning; nomogram model; osteonecrosis of the femoral head; risk prediction; total hip arthroplasty.

PubMed Disclaimer

Conflict of interest statement

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Figures

Figure 1
Figure 1
Lasso regression and Spearman's correlation analyses. (A) Distribution map illustrating the Lasso coefficients for all variables. (B) Identification of variables through Lasso regression analysis. (C) Correlation analysis conducted among the variables selected by Lasso regression.
Figure 2
Figure 2
ROC curves for four machine learning models evaluated on the internal validation set. (A) The ROC curve for the Random Forest model. (B) The ROC curve for the Extreme Gradient Boosting model. (C) The ROC curve for the Light Gradient Boosting Machine model. (D) The ROC curve for the Logistic Regression model.
Figure 3
Figure 3
Box plot comparing four machine learning models on the external test set. (A) AUC values, (B) ACC values, (C) Recall values, and (D) CE values.
Figure 4
Figure 4
Statistical visualizations of the SHAP analysis. (A) An ordered plot illustrating the importance of variables in the SHAP analysis; (B) SHAP value contribution graph for a single sample's indicators.
Figure 5
Figure 5
Nomogram model construction based seven features. *Denotes the magnitude of the P-value.
Figure 6
Figure 6
The receiver-operating characteristic curves, calibration plots, and decision curve analysis for the nomogram model in the training and validation sets are represented by (A–F), respectively.

References

    1. Shah KN, Racine J, Jones LC, Aaron RK. Pathophysiology and risk factors for osteonecrosis. Curr Rev Musculoskelet Med. (2015) 8:201–9. 10.1007/s12178-015-9277-8 - DOI - PMC - PubMed
    1. Mont MA, Zywiel MG, Marker DR, McGrath MS, Delanois RE. The natural history of untreated asymptomatic osteonecrosis of the femoral head: a systematic literature review. J Bone Joint Surg Am. (2010) 92:2165–70. 10.2106/JBJS.I.00575 - DOI - PubMed
    1. Lieberman JR, Engstrom SM, Meneghini RM, SooHoo NF. Which factors influence preservation of the osteonecrotic femoral head? Clin Orthop Relat Res. (2012) 470:525–34. 10.1007/s11999-011-2050-4 - DOI - PMC - PubMed
    1. Mont MA, Salem HS, Piuzzi NS, Goodman SB, Jones LC. Nontraumatic osteonecrosis of the femoral head: where do we stand today?: a 5-year update. J Bone Joint Surg Am. (2020) 102:1084–99. 10.2106/JBJS.19.01271 - DOI - PMC - PubMed
    1. Menendez ME, Lu N, Huybrechts KF, Ring D, Barnes CL, Ladha K, et al. Variation in use of blood transfusion in primary total hip and knee arthroplasties. J Arthroplasty. (2016) 31:2757–63.e2. 10.1016/j.arth.2016.05.022 - DOI - PubMed

LinkOut - more resources