Back to Journals » Risk Management and Healthcare Policy » Volume 18
Predicting Postoperative Blood Transfusion in Elderly Patients Undergoing Total Hip and Knee Arthroplasty Using Machine Learning Models
Authors Liang D , Pang Y , Huang J, Che X, Zhou R , Ding X , Wang C , Zhao L, Han Y, Rong X, Li P
Received 21 November 2024
Accepted for publication 2 May 2025
Published 21 May 2025 Volume 2025:18 Pages 1697—1711
DOI https://doi.org/10.2147/RMHP.S503286
Checked for plagiarism Yes
Review by Single anonymous peer review
Peer reviewer comments 2
Editor who approved publication: Dr Jongwha Chang
Dan Liang,1,2 Yiming Pang,2,3 Jingrui Huang,2 Xianda Che,2 Raorao Zhou,2 Xueting Ding,4 Chunfang Wang,4 Litao Zhao,5 Yichen Han,6 Xueqin Rong,5 Pengcui Li2
1Department of Health Statistics, School of Public Health, Shanxi Medical University, Taiyuan, Shanxi, 030001, People’s Republic of China; 2Key Laboratory of Bone and Soft Tissue Injury Repair, The Second Hospital of Shanxi Medical University, Taiyuan, Shanxi, 030001, People’s Republic of China; 3Academy of Medical Sciences, Shanxi Medical University, Taiyuan, Shanxi, 030001, People’s Republic of China; 4Animal Laboratory Center, Shanxi Medical University, Taiyuan, Shanxi, 030001, People’s Republic of China; 5Department of Pain Medicine, Sanya Central Hospital, Sanya, Hainan, 572000, People’s Republic of China; 6School of Sino-British Digital Media Art, Lu Xun Academy of Fine Arts, Shenyang, Liaoning, 110004, People’s Republic of China
Correspondence: Xueqin Rong, Department of Pain Medicine, Sanya Central Hospital, Sanya, Hainan, 572000, People’s Republic of China, Email [email protected] Pengcui Li, Key Laboratory of Bone and Soft Tissue Injury Repair, The Second Hospital of Shanxi Medical University, Taiyuan, Shanxi, 030001, People’s Republic of China, Email [email protected]
Purpose: With the aging population, the demand for total hip arthroplasty (THA) and total knee arthroplasty (TKA) has risen significantly. Elderly patients, especially those over 70 years, face a higher risk of perioperative bleeding and transfusion, increasing morbidity and mortality. Accurate transfusion risk prediction is vital for optimizing perioperative blood management. Traditional models often fail to capture complex factor interactions, whereas machine learning enhances predictive accuracy. This study aimed to develop predictive models for postoperative transfusion in elderly patients undergoing THA or TKA, identify key risk factors, and create an online prediction tool.
Patients and Methods: We retrospectively analyzed 1,520 elderly patients who underwent THA (659) or TKA (861). The Least Absolute Shrinkage and Selection Operator (LASSO) method was used for variable selection. The dataset was randomly split into training (70%) and testing (30%) sets. Five models—Logistic Regression (LR), Random Forest (RF), Support Vector Machines (SVM), K-Nearest Neighbors (KNN), and Naive Bayes (NB)—were developed and validated. Ten-fold cross-validation and grid search optimized model parameters. Model performance was evaluated using AUC, accuracy, precision, sensitivity, specificity, and F1 score. SHapley Additive exPlanations (SHAP) were applied to assess variable importance. An online tool was developed based on the models.
Results: Nineteen variables were retained. RF, LR, and SVM showed superior performance with AUC values exceeding 0.90. RF achieved the best results, with an accuracy of 0.86, precision of 0.80, specificity of 0.91, F1-score of 0.78, and sensitivity of 0.76. SHAP analysis highlighted intraoperative blood loss, hypertension, and postoperative drainage volume as major predictors.
Conclusion: The developed models and online tool support personalized transfusion risk assessment, optimizing perioperative management, optimizing blood utilization, and enhancing patient outcomes.
Keywords: elderly patients, total hip arthroplasty, total knee arthroplasty, blood transfusion, risk prediction models, online prediction tool
Introduction
With the aging population, degenerative joint diseases are becoming more prevalent. Total hip arthroplasty (THA) and total knee arthroplasty (TKA) are widely performed due to their success in treating end-stage joint diseases. With advancements in joint surgery techniques and materials, the number of these procedures has significantly increased each year. According to statistics from the American Joint Replacement Registry, the total number of primary joint replacements is projected to grow exponentially from 2020 to 2030.1 THA and TKA can rapidly improve hip and knee joint function, but they are associated with significant blood loss during the perioperative period.2 Consequently, blood transfusions are often necessary. However, perioperative transfusions can increase the risk of microcirculatory dysfunction and postoperative complications, such as deep vein thrombosis, surgical site infections, mortality, and transfusion-related acute lung injury.3–6 Additionally, the direct and indirect costs of perioperative blood transfusions increase the financial burden on patients. Elderly patients, due to the decline in bodily functions and weakened hematopoietic capacity, have a significantly reduced ability to compensate for and tolerate acute blood loss. Moreover, they often have multiple comorbidities, making them more likely to require allogeneic blood transfusions and experience related complications during the perioperative period compared to the general population.7–9 Compared to other types of surgeries, major orthopedic surgery (MOS) carries a higher risk of postoperative complications, and most patients undergoing these surgeries are elderly, typically aged 65 or older. Notably, being aged 70 or older is a high-risk factor for major bleeding after MOS,10 which reported that among 1,048 patients, 56% underwent hip arthroplasty, and 53% were over 70 years old. Patients aged >70 years had a significantly increased risk of major bleeding (RR: 2.42 [95% CI: 1.54–3.81]), with relative risks of 2.61 (95% CI: 1.50–4.53) for hip arthroplasty and 2.25 (95% CI: 1.03–4.94) for knee arthroplasty. After multivariate analysis, age was found to be independently associated with a higher risk of major bleeding.
In the decision-making process for blood transfusions, assessing individual risks and benefits is increasingly emphasized. Pediatric guidelines have already been published, acknowledging the unique physiological needs of younger patients.11 However, guidelines specifically for blood management in elderly patients are relatively rare. There is ongoing debate in clinical practice regarding whether elderly patients should follow a restrictive or liberal transfusion strategy. A liberal transfusion strategy (transfusing when hemoglobin levels are between 80 g/L and 100 g/L) considers factors such as anemia severity, cardiopulmonary function, age, and metabolic rate to determine the need for timely transfusion. In contrast, a restrictive transfusion strategy (transfusing when hemoglobin levels are below 80 g/L) involves strictly controlling the timing and amount of blood transfused to minimize the need for transfusions and reduce the risk of transfusion-related complications. A meta-analysis by Simon et al8 of transfusion trials in elderly patients found that the hemoglobin threshold for patient blood management differs between elderly and younger patients. Elderly men require a hemoglobin level close to 100 g/L to have a reserve capacity similar to that of younger men with a hemoglobin level of 70 g/L. The changes in metabolism, heart, and lung function in the elderly reduce their tolerance to anemia. Increasing hemoglobin levels can improve oxygenation, and using a higher hemoglobin threshold for transfusions in elderly patients can lead to lower mortality rates, fewer cardiac complications, and better long-term outcomes. Furthermore, studies have found that a liberal transfusion strategy can reduce the long-term mortality risk for frail, anemic elderly patients with poor baseline conditions.12 Conversely, Amin et al found that restrictive transfusion can achieve good perioperative outcomes and lower blood utilization in hemodynamically stable elderly patients.13 In orthopedic perioperative care, there is still a high rate of inappropriate transfusions,14,15 and the increased rate of allogeneic transfusions remains a major issue hindering patient functional recovery. In the context of global blood resource shortages and significant supply-demand imbalances in blood products, effective perioperative blood management for elderly patients is a pressing clinical need and a common goal for society. It is crucial to administer scientifically rational transfusions based on the patient’s individual conditions and specific needs, which helps reduce postoperative complications, promote patient recovery, and save medical resources and costs. Therefore, it is essential to conduct research on transfusion management for the elderly population. By predicting transfusion risk in elderly patients based on their physical conditions and needs before surgery, clinical doctors can identify high-risk patients and take preventive measures selectively, making surgery safer and more effective.
Machine learning (ML) is a branch of artificial intelligence that derives patterns from data analysis and uses these patterns to predict unknown events or probabilities. It has shown good practicality and effectiveness in predicting and diagnosing clinical diseases.16 Compared with traditional predictive models, machine learning can handle large amounts of variables with complex and nonlinear relationships, generating sophisticated predictive models with higher evaluation performance in analyzing big data medical issues. Currently, machine learning has been applied in various clinical aspects.16–18
Studies on postoperative blood transfusions after THA and TKA both domestically and internationally have generally focused on the entire patient population,19,20 with few specifically targeting the elderly. In the study by Brian P. Chalmer et al,20 a logistic regression (LR) generalized linear model was used to predict transfusions after TKA. However, LR assumes a linear relationship between predictors and outcomes, which may not fully capture the complex, nonlinear interactions among perioperative risk factors. Additionally, LR models are sensitive to multicollinearity and require careful handling of correlated variables to avoid biased estimates.21 These limitations can reduce the predictive accuracy and generalizability of LR models when applied to complex clinical datasets. In contrast, machine learning methods can automatically model nonlinear relationships and interactions, making them more adaptable for predicting transfusion risk in diverse patient populations. Studies by Anirudh Buddhiraju et al22 and Wayne Brian Cohen-Levy et al23 on transfusions after initial THA analyzed a broad patient population without specific consideration for age-related differences. Due to variations in datasets and included variables, the factors significantly associated with transfusion rates varied. In contrast, our study focuses on elderly patients (≥60 years), providing a more targeted transfusion risk assessment tailored to this high-risk group.
Machine learning can effectively analyze the nonlinear relationships between risk factors in large datasets. However, due to its “black box” nature—relying on the complexity and multidimensionality of the algorithm structure to internalize data—its operations are not easily audited or understood by humans. SHAP (Shapley Additive ExPlanations) is a game-theoretic method that explains the output of any machine learning model. It uses the classical Shapley values from game theory and their related extensions to link optimal credit allocation with local explanations, visualizing individual and global decision processes in models. This solves the explainability problem in machine learning, aiding in the understanding of clinical and research outcomes.24,25 Currently, there is a lack of explainability studies on predictive models for transfusions after THA and TKA.26 Therefore, the aim of this study is to use machine learning algorithms to identify factors associated with blood transfusions in elderly patients after THA and TKA and to construct a predictive model. This will provide a theoretical basis for rational blood transfusion in elderly patients post-surgery. Finally, the model will be developed into an online platform to facilitate personalized transfusion risk assessment for elderly patients, providing a reference for clinical decision-making.
Materials and Methods
The data for this study were sourced from the medical records of elderly patients who underwent total hip arthroplasty (THA, n = 659) and total knee arthroplasty (TKA, n = 861) at the Second Hospital of Shanxi Medical University between January 2020 and July 2022. The inclusion criteria were as follows: patients aged ≥60 years, patients undergoing elective THA or TKA, and patients with complete medical records. The exclusion criteria were as follows: patients with bleeding disorders (such as thrombocytopenic disorders, purpura, hemophilia) or severe coagulopathy, and patients with malignant diseases or tumors.
This study was approved by the Ethics Committee of the Second Hospital of Shanxi Medical University (Approval No. (2023) YX (183)). The data used in this study were already de-identified before being made available for analysis to ensure privacy. Informed consent was waived by the Institutional Review Board due to the retrospective nature of the study. The study adhered to the principles of the Declaration of Helsinki and subsequent amendments.
Patient medical records were collected, and based on literature review and guidance from professional orthopedic clinicians, 29 initial variables related to postoperative transfusion were included in the analysis. These variables are: Age, Sex, Body Mass Index (BMI), Hypertension, Diabetes, History of cardiac disease, Peripheral vascular disease, Smoking history, Osteoporosis, Renal disease, History of stroke, Respiratory system disorders, Anemia, Preoperative hemoglobin levels, Preoperative hematocrit, Preoperative serum albumin, Preoperative creatinine levels, Hypoalbuminemia, Preoperative inferior vena cava surgery, American Society of Anesthesiologists (ASA) classification (I, II, III, IV), Anesthesia method (general, spinal, combined), Operation duration, Surgical type (unilateral, bilateral, revision), Tourniquet usage, Intraoperative blood loss, Tranexamic acid (TXA) usage, Drainage tube usage, Postoperative hospital stay, and Postoperative drainage volume. ASA classification was provided and carefully recorded by the anesthesiologist prior to surgery.
The dataset was randomly split into training and testing sets in a 7:3 ratio. The training set was used to develop models using five algorithms: logistic regression, random forest, support vector machine, k-nearest neighbors, and naive Bayes. The testing set was used to validate the model performance. Each model was constructed using ten-fold cross-validation and optimal parameters were selected via grid search. The models were then applied to the testing set and evaluated based on receiver operating characteristic curve (ROC) area under the curve (AUC), accuracy, precision, sensitivity, specificity, and F1 score. Additionally, SHAP (Shapley Additive Explanations) analysis was conducted on the predictive models to quantify the impact of each feature on the model predictions. This helps understand the overall model behavior and the relative importance of features, improving model interpretability. Finally, the predictive models were converted into a web-based application to predict transfusion risk based on inputted basic information and data. The overall development workflow is shown in Figure 1.
![]() |
Figure 1 Flowchart of Developing ML-Based Predictive Models. |
Other statistical methods included independent t-tests for continuous variables and chi-squared tests or Fisher’s exact tests for categorical variables to assess differences between the transfusion and non-transfusion groups. All statistical analyses were performed using R (version 4.2.3) and Python (version 3.9.18).
Results
Basic Characteristics of the Dataset
A total of 1541 medical records were collected. After excluding 14 cases with coagulation disorders such as leukemia and thrombocytopenia and 7 cases of cancer patients, 1520 valid cases were included. Among these, 469 cases required transfusion, resulting in a transfusion rate of 30.8%. Within the valid cases, the THA dataset comprised 659 cases with a transfusion rate of 51.1%, and the TKA dataset comprised 861 cases with a transfusion rate of 15.3%. The overall demographic and perioperative factors of the patients are shown in Table 1, while the descriptive statistics for the THA and TKA datasets are shown in S1 and S2 Tables, respectively.
![]() |
Table 1 Demographic Characteristics and Perioperative Factors in the Total Dataseta |
Selection of Study Variables
Using LASSO (Figure 2), the most relevant predictors of postoperative transfusion were identified. These factors include: age, sex, BMI, hypertension, diabetes, history of cardiac disease, peripheral vascular disease, smoking history, osteoporosis, renal disease, history of stroke, respiratory system disorders, hypoalbuminemia, preoperative hemoglobin levels, serum albumin levels, surgical type, tourniquet usage, intraoperative blood loss, and postoperative drainage volume. In the THA and TKA datasets, the variable selection results are shown in S1 and S2 Figures.
Performance Evaluation of Different Machine Learning Algorithms
Comparison of ROC curves for different algorithms in the total dataset (Figure 3), Figure 4 presents the ROC curves and AUC comparisons for different models, with (A) showing results from the THA dataset and (B) from the TKA dataset. as well as model performance evaluation tables (Table 2), are shown in the text. Different algorithms exhibit varying predictive performances across the datasets. RF, LR, and SVM demonstrate superior classification performance across the total, THA, and TKA datasets, with all metrics (AUC, accuracy, precision, specificity, sensitivity, F1 score) exceeding 0.70 in both the total and THA datasets, particularly with AUC values surpassing 0.90. In the TKA dataset, these three algorithms show AUC values and accuracies above 0.90, highlighting their significant advantage in predicting postoperative blood transfusion risk for elderly patients.
![]() |
Table 2 Performance of Different ML Algorithms in Predicting Postoperative Blood Transfusion in All Datasets* |
![]() |
Figure 3 Comparison of Representative Subject Operating Characteristic (ROC) Curves in the Overall Dataset. |
RF outperforms all other algorithms across datasets. In the total dataset, RF achieves an AUC of 0.92, accuracy of 0.86, precision of 0.80, specificity of 0.91, F1 score of 0.78, and sensitivity of 0.76. In the THA dataset, RF’s metrics are AUC 0.93, accuracy 0.87, precision 0.82, specificity 0.82, F1 score 0.88, and sensitivity 0.94. For the TKA dataset, RF shows AUC 0.91, accuracy 0.92, precision 0.84, specificity 0.98, F1 score 0.72, and sensitivity 0.63.
SVM matches RF in AUC, precision, and specificity for the total dataset but falls slightly short in other metrics. LR, while slightly behind RF and SVM, still shows good predictive capability. KNN and NB also perform well across various metrics, though they are less effective in F1 score and sensitivity.
Overall, RF, SVM, and LR exhibit excellent performance across datasets, with RF demonstrating the best overall performance in predicting postoperative transfusion risk in elderly patients. The results from this study indicate that the RF algorithm consistently provides stable and robust predictive performance across all datasets, offering valuable insights and support for future research and applications in predicting THA and TKA postoperative transfusion risks.
Contribution of Important Features to Model Prediction as Interpreted by SHAP
As established, RF demonstrates superior overall performance across datasets. Figure 5 shows the SHAP global dependency plot and SHAP mean absolute value, illustrating the importance rankings of variables in the RF model and their positive or negative effects on transfusion outcomes across datasets. The plots display feature rankings from top to bottom for (A-B) the total dataset, (C-D) the THA dataset, and (E-F) the TKA dataset, respectively.
In the total dataset, the top five important features are intraoperative blood loss, hypertension, drain usage, surgical type, and preoperative hemoglobin levels. In the THA dataset, the top five important features are hypertension, intraoperative blood loss, postoperative drainage volume, surgery duration, and preoperative hematocrit. In the TKA dataset, the top five important features are surgical type, intraoperative blood loss, postoperative drainage volume, preoperative hematocrit, and surgery duration.
Overall, the six features that most significantly impact prediction outcomes across the total, THA, and TKA datasets are intraoperative blood loss, hypertension, postoperative drainage volume, surgical type, surgery duration, and preoperative hemoglobin.
Online Web Prediction
The developed models can be accessed for variable input and prediction on the following websites: (1) [https://thaweb-g7cn3xzdeqkgyecfvqi6ud.streamlit.app/], which predicts the risk of postoperative blood transfusion for THA patients; (2) [https://tkaweb-brwee2p63ldtrktgvcrspu.streamlit.app/], which predicts the risk of postoperative blood transfusion for TKA patients. The detailed page display is shown in Figure 6.
![]() |
Figure 6 Example interface for predicting postoperative blood transfusion risk in patients. |
Discussion
With the aging population, degenerative joint diseases are becoming increasingly common, leading to a significant annual increase in the number of THA and TKA procedures. These surgeries can result in substantial blood loss, and elderly patients, due to their declining physiological functions and underlying health conditions, are at a higher risk for blood transfusions and associated complications compared to the general population. This study developed prediction models for postoperative blood transfusion in elderly patients undergoing THA and TKA, identified relevant risk factors, and provided a convenient tool for personalized risk assessment. These models serve as a reference for clinical decision-making, facilitating scientific and rational blood transfusion judgments based on patients’ individual conditions and needs, thereby offering a theoretical and scientific basis for blood management in elderly patients.
Among the evaluation metrics for model performance, the AUC value of each algorithm model provides an intuitive measure of classification capability. In the overall dataset, the random forest (RF) algorithm performed best with an AUC of 0.92, followed closely by the support vector machine (SVM) algorithm with an AUC of 0.92. The logistic regression (LR) algorithm had an AUC of 0.90, the k-nearest neighbors (KNN) algorithm had an AUC of 0.88, and the naive Bayes (NB) algorithm had the lowest AUC of 0.83. In the THA dataset, the random forest algorithm continued to excel. In the TKA dataset, the logistic regression and support vector machine algorithms both had high AUC values of 0.92, indicating their relatively strong performance, while the random forest algorithm followed closely with an AUC of 0.91. This indicates that the random forest algorithm has a strong ability to distinguish between positive and negative samples, making it one of the preferred models. Considering other metrics across different datasets, the random forest algorithm consistently outperformed other algorithms, demonstrating superior performance in predicting postoperative blood transfusion risk for THA and TKA.
Although other algorithms performed well on certain metrics, their overall performance still needs improvement. Factors contributing to the suboptimal performance of these algorithms may include insufficient model complexity, improper feature selection, sensitivity to data noise or outliers, and inherent limitations of the algorithms themselves. For instance, logistic regression is a linear classifier that is highly sensitive to the linear relationship between features and the target variable. If there are complex nonlinear relationships between features, logistic regression may fail to fit the data accurately.
In predicting postoperative blood transfusion risk for THA and TKA, the support vector machine (SVM) might focus excessively on local features while neglecting global ones if the feature dimension is high but the sample size is relatively small, leading to decreased performance. The K-nearest neighbors (KNN) algorithm’s performance is influenced by distance measures and the number of neighbors. If there is noise or outliers in the feature space, KNN might be affected, resulting in poor performance when predicting postoperative blood transfusion risk. The naive Bayes algorithm assumes that features are independent of each other and that their influence on the target variable is also independent. If there is correlation between features or interaction effects on the target variable, the naive Bayes algorithm’s performance may suffer. These limitations highlight the need for further research and discussion to enhance the performance of these algorithms.
This investigation systematically assesses the key factors influencing postoperative transfusion risk in elderly THA and TKA patients. SHAP analysis identified intraoperative blood loss, hypertension, surgical type, drainage tube usage, and preoperative hemoglobin levels as the most critical predictors across datasets.
Intraoperative blood loss has been reaffirmed by our analysis as a primary determinant of transfusion risk, aligning with clinical expectations and corroborated by previous studies. This finding highlights the critical need for effective intraoperative hemostatic measures, including the judicious use of tranexamic acid (TXA). Several studies have demonstrated that TXA significantly reduces intraoperative and postoperative blood loss without increasing thrombotic events.27,28 Our study further supports the clinical importance of TXA in minimizing transfusion requirements among elderly patients.
Hypertension and cardiovascular considerations remain significant factors influencing transfusion risk, as evidenced by its predictive role in both the total dataset and the THA subgroup. Patients with hypertension may experience compromised vascular integrity, potentially leading to increased intraoperative bleeding and a higher likelihood of transfusion. Previous research has shown that maintaining a mean arterial pressure (MAP) between 60 and 70 mmHg during surgery can reduce blood loss without adversely affecting cerebral oxygenation or cognitive function.26,29 Furthermore, intraoperative blood pressure management has been demonstrated to significantly mitigate both intraoperative and total blood loss29,30, emphasizing the need for optimized perioperative strategies in hypertensive elderly patients.
Drainage tube usage has also emerged as a key factor associated with transfusion risk. Studies suggest that the presence of drainage tubes may contribute to postoperative blood loss, thereby increasing transfusion rates.27,31,32 In light of these findings, our study underscores the importance of individualized drainage strategies in elderly patients, aiming to balance postoperative drainage management with efforts to minimize transfusion risk.
Surgical type and procedural factors play a crucial role in determining transfusion requirements, particularly within the TKA dataset. Variations in soft tissue handling, surgical approach, and intraoperative hemostatic control contribute to differences in blood loss across procedures. Additionally, the surgeon’s familiarity with vascular anatomy and intraoperative decision-making directly impacts transfusion needs, suggesting that personalized surgical planning is critical in elderly patients.
Unlike most studies that assess transfusion risk factors in general THA/TKA populations, our study focuses specifically on elderly patients (≥60 years), a demographic with distinct physiological challenges. Previous research has confirmed that patients aged ≥70 years are at significantly higher risk of major bleeding (RR: 2.42 [95% CI: 1.54–3.81]). Additionally, elderly patients have reduced compensatory capacity for anemia and may require higher transfusion thresholds compared to younger individuals.8,33 Our study builds upon these findings by employing machine learning models to enhance transfusion risk prediction in elderly patients, providing individualized risk assessment beyond conventional statistical methods.
While our study comprehensively analyzed transfusion risk factors, certain variables suggested by previous studies—such as inflammatory markers (CRP, ESR, IL-6), blood conservation strategies (preoperative iron, erythropoietin, cell salvage), and additional surgical factors (approach, intraoperative complications)—were not included in our final models. These variables, while potentially relevant, were not consistently available in routine clinical records and thus were not incorporated to ensure model practicality. Future studies incorporating these factors could further refine transfusion risk prediction.
Effective transfusion management requires balancing patient safety with healthcare resource utilization. The developed predictive models provide a valuable tool for personalized transfusion risk assessment in elderly patients undergoing THA and TKA, which may facilitate more precise perioperative blood management. Previous studies34 have highlighted that patient blood management (PBM) strategies, including optimizing transfusion practices, can contribute to improved patient outcomes and healthcare resource optimization. Effective PBM has been associated with reduced hospital stays, lower healthcare expenditures, and decreased transfusion-related complications, further emphasizing the importance of integrating predictive models into perioperative management.
While our study did not conduct a formal cost-benefit analysis, the potential of ML-based prediction models in reducing unnecessary transfusions and improving blood utilization efficiency is noteworthy. By enabling early identification of high-risk patients, these models could help guide preoperative preparation, reduce excessive blood transfusions, and optimize blood resource allocation, thereby contributing to improved patient outcomes and cost-effective healthcare management. However, a comprehensive cost-effectiveness analysis is necessary to further validate the economic benefits of implementing such predictive models in real-world clinical settings. Future studies should incorporate economic assessments to quantify the impact of ML-driven transfusion strategies on healthcare costs and patient outcomes.
In summary, analyzing key features helps to better understand the factors affecting postoperative transfusion risk in elderly THA and TKA patients and provides guidance for clinical practice. Timely monitoring and control of intraoperative blood loss, management of hypertension, rational use of drainage tubes, and personalized management strategies for different types of surgery can help reduce the risk of postoperative transfusion in elderly patients, improving clinical outcomes. The constructed prediction models and online prediction tools enable clinicians to perform personalized transfusion risk assessments for elderly patients. This personalized assessment, which takes into account specific patient characteristics and surgical details, can more accurately predict postoperative transfusion risk, providing an important reference for clinical decision-making and aiding clinicians in developing individualized treatment plans. Based on the prediction results, doctors can timely assess transfusion risks and implement effective interventions, thereby reducing the need for postoperative transfusion, minimizing the risk of transfusion-related complications, improving treatment outcomes, and aiding in patient recovery. Rationalizing transfusion practices can save medical resources and costs to some extent, potentially reducing unnecessary tests for patients, alleviating the economic burden on society and patient families, and minimizing the side effects caused by diagnostic tools. The application of prediction models and online prediction tools promotes the scientific and standardized nature of clinical decision-making. Doctors can use objective data and model prediction results to develop more scientific and reasonable treatment plans, improving the efficiency and quality of clinical work. In the context of blood resource shortages and high rates of inappropriate transfusions, scientific and reasonable transfusion judgments based on patients’ conditions and specific needs provide a theoretical basis and scientific foundation for blood management in elderly patients. Finally, the machine learning-based approach of this study, capable of handling large-scale datasets and high-dimensional data, lays the foundation for future expansion to larger datasets and more variables, thus providing greater development potential for research on rational transfusion in elderly patients.
In conclusion, the prediction model and online prediction tools hold significant clinical application and importance in the postoperative transfusion management of elderly THA and TKA patients. Rather than defining new transfusion thresholds, our model is designed to complement existing clinical guidelines by identifying high-risk patients preoperatively and supporting evidence-based transfusion decisions. While hemoglobin levels are a crucial reference indicator for determining the need for red blood cell transfusion, clinical practice should comprehensively consider the patient’s comorbidities, vital signs, and other factors to analyze the specific situation. Advocating for rational blood use can save blood products and reduce adverse reactions, ultimately benefiting the patient.
Future research should focus on validating these models in multicenter cohorts to improve their generalizability and clinical applicability. Expanding feature selection to incorporate additional relevant variables, such as inflammatory markers and advanced blood conservation strategies, may further enhance predictive performance. Given the potential advantages of advanced ensemble learning methods, future studies could explore the application of XGBoost and LightGBM to optimize the bias-variance trade-off. Additionally, prospective validation in real-world clinical settings will be essential to assess the practical impact of these models on transfusion practices, healthcare efficiency, and patient outcomes.
However, this study has certain limitations. The data used in this research were sourced from the medical records of elderly patients at a single hospital, making it a single-center study. This may limit the representativeness of the sample, affecting the model’s generalizability and external validity. Differences in surgical techniques, transfusion thresholds, and perioperative management strategies across regions may impact model performance. Additionally, while our study incorporated key transfusion risk factors, certain perioperative variables (eg, inflammatory markers, advanced blood conservation strategies) were not included, which could further refine risk prediction models. Future research could improve the predictive accuracy and stability of the model by incorporating more clinical data and utilizing more advanced artificial intelligence techniques.
Conclusions
By developing a predictive model, this study provides an in-depth analysis of postoperative transfusion risk specifically in elderly patients undergoing total hip arthroplasty (THA) and total knee arthroplasty (TKA). Our findings demonstrate that the random forest (RF) model achieves the highest predictive performance, with AUC values exceeding 0.90 in both THA and TKA datasets, supporting its reliability in transfusion risk assessment for these surgical populations.
SHAP analysis identified key risk factors, including intraoperative blood loss, hypertension, and postoperative drainage volume, which have significant implications for perioperative transfusion decision-making in elderly patients. These findings reinforce the necessity of preoperative optimization and intraoperative hemostatic strategies to mitigate transfusion risks in this high-risk group.
This study contributes to the personalized transfusion management of elderly THA and TKA patients, offering a data-driven approach to support individualized perioperative planning. By incorporating advanced feature selection techniques and explainable machine learning methods, our model enhances clinical interpretability and usability, distinguishing it from previous transfusion prediction models.
Additionally, an online prediction tool was developed to facilitate real-time, patient-specific transfusion risk estimation, allowing clinicians to make informed decisions regarding transfusion strategies. This tool may help optimize blood product utilization, minimize unnecessary transfusions, and reduce associated complications in elderly surgical patients.
Moving forward, multicenter validation studies are necessary to confirm the external applicability of the model across diverse populations. Further refinement of the model by integrating additional predictive factors, such as inflammatory markers and blood conservation strategies, could further enhance its predictive performance and clinical utility.
In conclusion, this study provides a valuable framework for optimizing transfusion strategies in elderly THA and TKA patients, with potential implications for improving patient outcomes and perioperative blood management.
Acknowledgments
The authors sincerely thank the funding agencies for their generous support.
Funding
This research was supported by the National Natural Science Foundation of China (Grant No. 82172503), the Scientific Research Project for Returned Overseas Scholars in Shanxi Province (Project No. 2022-199), the Natural Science Research Project of Shanxi Province (Project No. 20210302123263), the Shanxi Province Key Research and Development Program (Project No. 202202150401019), and the 2022 Shanxi Graduate Education Innovation Project (Project No. 2022Y409).
Disclosure
The authors report no conflicts of interest in this work.
References
1. Sloan M, Premkumar A, Sheth NP. Projected Volume of Primary Total Joint Arthroplasty in the U.S. 2014 to 2030. J Bone Joint Surg Am. 2018;100(17):1455–1460. doi:10.2106/jbjs.17.01617
2. Keating EM, Meding JB. Perioperative blood management practices in elective orthopaedic surgery. J Am Acad Orthopaedic Surg. 2002;10(6):393–400. doi:10.5435/00124635-200211000-00003
3. 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 Vol. 1999;81(1):2–10. doi:10.2106/00004623-199901000-00002
4. Saleh A, Small T, Chandran Pillai AL, Schiltz NK, Klika AK, Barsoum WK. Allogenic blood transfusion following total Hip arthroplasty: results from the nationwide inpatient sample, 2000 to 2009. J Bone Joint Surg Am. 2014;96(18):e155. doi:10.2106/jbjs.M.00825
5. Browne JA, Adib F, Brown TE, Novicoff WM. Transfusion rates are increasing following total Hip arthroplasty: risk factors and outcomes. J Arthroplasty. 2013;28(8 Suppl):34–37. doi:10.1016/j.arth.2013.03.035
6. Everhart JS, Sojka JH, Mayerson JL, Glassman AH, Scharschmidt TJ. Perioperative Allogeneic Red Blood-Cell Transfusion Associated with Surgical Site Infection After Total Hip and Knee Arthroplasty. J Bone Joint Surg Am. 2018;100(4):288–294. doi:10.2106/jbjs.17.00237
7. Zhu SH, Ji MH, Gao DP, Li WY, Yang JJ. Association between perioperative blood transfusion and early postoperative cognitive dysfunction in aged patients following total Hip replacement surgery. Upsala J Med Sci. 2014;119(3):262–267. doi:10.3109/03009734.2013.873502
8. Simon GI, Craswell A, Thom O, Chew MS, Anstey CM, Fung YL. Impacts of Aging on Anemia Tolerance, Transfusion Thresholds, and Patient Blood Management. Transfus Medi Rev. 2019;33(3):154–161. doi:10.1016/j.tmrv.2019.03.001
9. Grandone E, Mastroianno M, De Laurenzo A, et al. Mortality and clinical outcome of Italian patients undergoing orthopaedic surgery: effect of peri-operative blood transfusion. Blood Transfusion. 2021;19(4):284–291. doi:10.2450/2020.0059-20
10. Quintero JI, Cárdenas LL, Navas M, Bautista MP, Bonilla GA, Llinás AM. Primary Joint Arthroplasty Surgery: is the Risk of Major Bleeding Higher in Elderly Patients? A Retrospective Cohort Study. J Arthroplasty. 2016;31(10):2264–2268. doi:10.1016/j.arth.2016.03.025
11. Goel R, Cushing MM, Tobian AA. Pediatric Patient Blood Management Programs: not Just Transfusing Little Adults. Transfus Medi Rev. 2016;30(4):235–241. doi:10.1016/j.tmrv.2016.07.004
12. Zhu C, Yin J, Wang B, et al. Restrictive versus liberal strategy for red blood-cell transfusion in Hip fracture patients: a systematic review and meta-analysis. Medicine. 2019;98(32):e16795. doi:10.1097/md.0000000000016795
13. Amin RM, DeMario VM, Best MJ, et al. A Restrictive Hemoglobin Transfusion Threshold of Less Than 7 g/dL Decreases Blood Utilization Without Compromising Outcomes in Patients With Hip Fractures. J Am Acad Orthopaedic Surg. 2019;27(23):887–894. doi:10.5435/jaaos-d-18-00374
14. Yu X, Pang H, Xu Z, et al. Multicentre evaluation of perioperative red blood cells transfusions in China. Br J Anaesth. 2014;113(6):1055–1056. doi:10.1093/bja/aeu392
15. Chou CW, Xu R, Yang L, Huang W. Perioperative red blood cell transfusion for patients undergoing elective non-cardiac surgery: an audit at a Chinese tertiary hospital. Transfus Apheresis Sci. 2014;51(3):99–103. doi:10.1016/j.transci.2014.08.012
16. Martin RK, Ley C, Pareek A, Groll A, Tischer T, Seil R. Artificial intelligence and machine learning: an introduction for orthopaedic surgeons. Knee Surg Sports Traumatol Arthroscopy. 2022;30(2):361–364. doi:10.1007/s00167-021-06741-2
17. Klemt C, Tirumala V, Habibi Y, Buddhiraju A, Chen TL, Kwon YM. The utilization of artificial neural networks for the prediction of 90-day unplanned readmissions following total knee arthroplasty. Archiv Orthopaed Trauma Surg. 2023;143(6):3279–3289. doi:10.1007/s00402-022-04566-3
18. Klemt C, Tirumala V, Barghi A, Cohen-Levy WB, Robinson MG, Kwon YM. Artificial intelligence algorithms accurately predict prolonged length of stay following revision total knee arthroplasty. Knee Surg Sports Traumatol Arthroscopy. 2022;30(8):2556–2564. doi:10.1007/s00167-022-06894-8
19. Kang YJ, Yoo JI, Cha YH, Park CH, Kim JT. Machine learning-based identification of Hip arthroplasty designs. J Orthopaed Transl. 2020;21:13–17. doi:10.1016/j.jot.2019.11.004
20. Kolin DA, Lyman S, Della Valle AG, Ast MP, Landy DC, Chalmers BP. Predicting Postoperative Anemia and Blood Transfusion Following Total Knee Arthroplasty. J Arthroplasty. 2023;38(7):1262–6.e2. doi:10.1016/j.arth.2023.01.018
21. Ranganathan P, Pramesh CS, Aggarwal R. Common pitfalls in statistical analysis: logistic regression. Perspect Clin Res. 2017;8(3):148–151. doi:10.4103/picr.PICR_87_17
22. Buddhiraju A, Shimizu MR, Subih MA, Chen TL-W, Seo HH, Kwon Y-M. Validation of Machine Learning Model Performance in Predicting Blood Transfusion After Primary and Revision Total Hip Arthroplasty. J Arthroplasty. 2023;38(10):1959–1966. doi:10.1016/j.arth.2023.06.002
23. Cohen-Levy WB, Klemt C, Tirumala V, et al. Artificial neural networks for the prediction of transfusion rates in primary total Hip arthroplasty. Archiv Orthopaed Trauma Surg. 2022;143(3):1643–1650. doi:10.1007/s00402-022-04391-8
24. Hong MP, Zhang R, Fan SJ, et al. Interpretable CT radiomics model for invasiveness prediction in patients with ground-glass nodules. Clin Radiol. 2023;79(1):e8–e16. doi:10.1016/j.crad.2023.09.016
25. Zhong X, Lin Y, Zhang W, Bi Q. Predicting diagnosis and survival of bone metastasis in breast cancer using machine learning. Sci Rep. 2023;13(1):18301. doi:10.1038/s41598-023-45438-z
26. Ramkumar PN, Pang M, Polisetty T, Helm JM, Karnuta JM. Meaningless Applications and Misguided Methodologies in Artificial Intelligence-Related Orthopaedic Research Propagates Hype Over Hope. Arthroscopy. 2022;38(9):2761–2766. doi:10.1016/j.arthro.2022.04.014
27. Zhou XD, Li J, Xiong Y, Jiang LF, Li WJ, Wu LD. Do we really need closed-suction drainage in total Hip arthroplasty? A meta-analysis. Int Orthopaedics. 2013;37(11):2109–2118. doi:10.1007/s00264-013-2053-8
28. Hines JT, Hernandez NM, Amundson AW, Pagnano MW, Sierra RJ, Abdel MP. Intravenous tranexamic acid safely and effectively reduces transfusion rates in revision total Hip arthroplasty. Bone Joint J. 2019;101(6_Supple_B):104–109. doi:10.1302/0301-620x.101b6.Bjj-2018-1376.R1
29. Yun SH, Kim JH, Kim HJ. Comparison of the hemodynamic effects of nitroprusside and remifentanil for controlled hypotension during endoscopic sinus surgery. J Anesthesia. 2015;29(1):35–39. doi:10.1007/s00540-014-1856-0
30. Wang HY, Yuan MC, Pei FX, Zhou ZK, Liao R. Finding the optimal control level of intraoperative blood pressure in no tourniquet primary total knee arthroplasty combine with tranexamic acid: a retrospective cohort study which supports the enhanced recovery strategy. J Orthopaedic Surg Res. 2020;15(1):350. doi:10.1186/s13018-020-01887-0
31. Parker MJ, Livingstone V, Clifton R, McKee A. Closed suction surgical wound drainage after orthopaedic surgery. Cochrane Database Syst Rev. 2007;2007(3):Cd001825. doi:10.1002/14651858.CD001825.pub2
32. Park JH, Rasouli MR, Mortazavi SM, Tokarski AT, Maltenfort MG, Parvizi J. Predictors of perioperative blood loss in total joint arthroplasty. J Bone Joint Surg Am. 2013;95(19):1777–1783. doi:10.2106/jbjs.L.01335
33. Fillingham YA, Ramkumar DB, Jevsevar DS, et al. The Efficacy of Tranexamic Acid in Total Hip Arthroplasty: a Network Meta-analysis. J Arthroplasty. 2018;33(10):3083–9.e4. doi:10.1016/j.arth.2018.06.023
34. Hofmann A, Ozawa S, Farrugia A, Farmer SL, Shander A. Economic considerations on transfusion medicine and patient blood management. Best Pract Res Clin Anaesth. 2013;27(1):59–68. doi:10.1016/j.bpa.2013.02.001
© 2025 The Author(s). This work is published and licensed by Dove Medical Press Limited. The
full terms of this license are available at https://www.dovepress.com/terms.php
and incorporate the Creative Commons Attribution
- Non Commercial (unported, 4.0) License.
By accessing the work you hereby accept the Terms. Non-commercial uses of the work are permitted
without any further permission from Dove Medical Press Limited, provided the work is properly
attributed. For permission for commercial use of this work, please see paragraphs 4.2 and 5 of our Terms.