Abstract
Background
Despite advancements in total hip arthroplasty (THA) and the increased utilization of tranexamic acid, acute blood loss anemia necessitating allogeneic blood transfusion persists as a post-operative complication. The prevalence of allogeneic blood transfusion in primary THA has been reported to be as high as 9%. Therefore, this study aimed to develop and validate novel machine learning models for the prediction of transfusion rates following primary total hip arthroplasty.
Methods
A total of 7265 consecutive patients who underwent primary total hip arthroplasty were evaluated using a single tertiary referral institution database. Patient charts were manually reviewed to identify patient demographics and surgical variables that may be associated with transfusion rates. Four state-of-the-art machine learning algorithms were developed to predict transfusion rates following primary THA, and these models were assessed by discrimination, calibration, and decision curve analysis.
Results
The factors most significantly associated with transfusion rates include tranexamic acid usage, bleeding disorders, and pre-operative hematocrit (< 33%). The four machine learning models all achieved excellent performance across discrimination (AUC > 0.78), calibration, and decision curve analysis.
Conclusion
This study developed machine learning models for the prediction of patient-specific transfusion rates following primary total hip arthroplasty. The results represent a novel application of machine learning, and has the potential to improve outcomes and pre-operative planning.
Level of evidence
III, case–control retrospective analysis.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introduction
Despite advancements in total hip arthroplasty (THA) and the increased utilization of tranexamic acid (TXA) [1], acute blood loss anemia necessitating allogeneic blood transfusion persists as a post-operative complication [2]. THA remains a major source of blood transfusion burden [3]. Rates of blood transfusion vary widely by hospital system largely due to the inexact recommendations and lack of consensus regarding appropriate transfusion thresholds [4]. However, the rates of blood transfusion following primary total hip arthroplasty (THA) have been estimated to be as high as 9% [4].
Propelled by the removal of THA from the Center for Medicare and Medicaid Service (CMS) inpatient only list, an increasing percentage of primary THA will be done at outpatient centers including ambulatory surgery centers [5]. As opposed to hospitals with large blood banks, outpatient centers are less equipped to deal with significant blood loss necessitating transfusions [6, 7]. While transfusion is an infrequent event in primary THA, previous studies have identified it as a reason why patients fail to be discharged on the day of surgery [8]. Additionally, it represents the most significant predictor of an extended length of stay [9]. Pre-operative identification of those patients at high risk for transfusion would allow surgeons to direct these patients to the hospital setting or coordinate with the blood bank at the ambulatory surgery centers to have blood available [6]. Therefore, prior works have identified numerous risk factors for needing a blood transfusion following THA [10,11,12]. These studies identified patient and surgical variables that increase patient’s odds of requiring blood transfusion following THA; nonetheless, these prior works did not to evaluate the weight for each of these risk factors with regards to the risk of blood transfusion.
Recently, there has been an increase in the use of machine learning and artificial neural networks as predictive models within hip and knee arthroplasty [13]. Machine learning models are able to effectively analyze non-linear relationships between risk factors in a large dataset and achieve accuracies for risk factor predictions that outperform previously used statistical methods [14]. The promise of accurate and reliable predictive modeling has invaluable potential in helping with risk stratification, pre-operative planning, and optimization [15]. However, there is a paucity of studies on the application of machine learning technology to predict transfusion rates in arthroplasty. Therefore, this study aimed to develop and validate novel machine learning models for the prediction of transfusion rates following primary total hip arthroplasty.
Methods
Database
Upon obtaining approval from the Institutional Review Board (IRB), we performed a retrospective review of 7411 primary total hip arthroplasty procedures at a single tertiary referral center between 2016 and 2019. THA patients with the following criteria were excluded [16]: (1) simultaneous bilateral surgery, (2) partial hip joint arthroplasty, (3) malignancy, (4) incomplete data, and (5) less than 2 years of follow-up. After exclusions, a total of 7265 primary total hip arthroplasty patients remained for evaluation.
Measures
Our main aim was to develop an accurate predictive model for transfusion rates for patients following primary THA. Even so, in selecting predictors, we incorporated consideration of cause-and-effect relationships. Therefore, we performed a variable selection for candidate predictors in stages—patient factors first, followed by surgical variables. In concordance with these classic principles of causal modeling, we retained and in the final model controlled for predictors chosen in the first stage.
Using our institution’s electronic medical record system for patient chart review, patient and surgical variables associated with transfusion rates in THA were identified [2, 17]. Demographic variables included age, gender, body mass index (BMI), ethnicity, marital status, insurance status, American Society of Anesthesiologist Physical Status score (ASA score), medical comorbidities, as well as Charlson comorbidity index (CCI). With regards to smoking and drinking as medical comorbidities, patients that were classified as smokers or drinkers were actively consuming cigarettes or alcohol when admitted to hospital prior to primary THA. Surgical variables included for analysis were laterality, anesthesia type, tranexamic acid usage (1 mg intravenously at beginning of surgery and additional 1 mg at the time of closing), component fixation method (cemented vs non-cemented), surgical approach (anterolateral vs posterior), transfusion rates, and operation time.
Predictive models
For the classification analysis, we employed four state-of-the-art supervised machine learning methods: (1) artificial neural networks (ANN), (2) stochastic gradient boosting (SGB), (3) support vector machines (SVM), and (4) elastic-net penalized logistic regression (ENP). These machine learning methods were selected based on prior work showing the potency of these methods to accurately predict clinical outcomes of patients following hip and knee arthroplasty surgery [18]. To investigate the ability of these machine learning methods to understand the aforementioned outcome, we used an 80:20 test-train split: 80% (5812 THAs) of data randomly selected and utilized to train the algorithms and 20% (1453 THAs) of data utilized for internal validation and testing. For training the different machine learning models, a fivefold cross-validation repeated was repeated five times to assess each algorithm’s ability to generalize previously unseen data.
Machine learning candidate model discrimination was performed through the use of the area under the receiver-operating curve (AUC). Excellent candidate models exceed an AUC of 0.8. A calibration plot was utilized to ascertain machine learning candidate model calibration. The Brier score was used to assess the overall model performance in concordance with prior literature (perfect candidate models have Brier score of 0). Machine learning model interpretability and explanation was provided at the global and local levels.
Statistical analysis
All data analysis was performed using Matlab (MathWorks Inc., Natick, MA, USA), Anaconda (Anaconda Inc., Austin, TX, USA), Python (Python Software Foundation, Wilmington, DE, USA), and SPSS (SPSS Version 18.0, IBM Corp., Armonk, NY, USA).
Results
Overall, a total of 7265 patients underwent primary total hip arthroplasty. Blood transfusions were observed in 703 patients (9%), including 557 patients in the training set and 146 patients in the testing set. Patient demographics and surgical variables are summarized in Table 1. Variables identified for machine learning development through recursive feature selection were tranexamic acid usage (p < 0.001), bleeding disorders (p < 0.001), pre-operative hematocrit (< 33%; p < 0.01), pre-operative platelet count (< 109/L; p < 0.01), anesthesia type (p < 0.01), diabetes (p = 0.01), and gender (p = 0.02; Fig. 1). The strongest predictors for transfusion rates in primary total hip arthroplasty include tranexamic acid usage, bleeding disorders, and pre-operative hematocrit (Fig. 1).
Machine learning model performance in the independent testing set resulted in AUC values ranging from 0.78 to 0.82 (Table 2; Table 3). The calibration intercept ranged from 0.10 to 0.26 (Table 2; Table 3; Fig. 2). The Brier score errors in the testing set varied between 0.052 and 0.056. The best model performance was achieved by neural networks with an AUC of 0.82, calibration slope of 0.10, calibration intercept of 1.12, and Brier score error of 0.052 (Table 2; Table 3). The machine learning models provided a prediction for blood loss that was within 15 ml of the actual blood loss observed during primary THA in 97.8% of the cases.
The decision curve analysis demonstrated that the four machine learning candidate models all achieved higher net benefits for the prediction of intraoperative blood loss and transfusion rates, when compared to the default strategies of changing management for all patients or no patients. Using the artificial neural network algorithm, local explanations of predictions for transfusion rates in primary THA patients were performed to assess the fidelity of the artificial neural network model (Fig. 3). For a female patient with a prior history of diabetes, elevated pre-operative hematocrit (36%), who underwent primary THA without tranexamic acid usage, the predicted probability for the need of blood transfusion is 21.1%.
Discussion
The ability to accurately predict those patients at highest risk for perioperative blood product transfusion has potential to improve clinical outcomes and efficiency, and reduce cost. In this study, machine learning models were developed and validated to accurately predict the need for blood transfusion following primary total hip arthroplasty. Among the variables included in the model, tranexamic acid, and a history of a bleeding disorder provided the strongest predictive value within the model. Charges for type and screen and type and cross have been reported to be between $37 and $139.86 with additional charges for cross-matching additional units of blood [17]. In one large academic US-based hospital system, orthopedics was reported to be associated with the highest ratio of type and screen and type and cross tests ordered relative to the number of transfusions administered, thus representing a cost inefficiency [9]. Recent publications have reported that routine blood typing is unnecessary for primary total hip and knee arthroplasty [16]. Recommendations on blood preparation for revision total hip and knee arthroplasty is more limited with only one study providing such recommendations [17]. Previous efforts to refine ordering for blood products have demonstrated efficacy in reducing costs [2]. The current machine learning models represent an accurate method for predicting patient-specific blood transfusion and thus improving blood typing and management which represents a potential cost saving initiative. The clinical utility of the machine learning methods is based on its high accuracy (predictions of blood loss are within 15 ml of actual blood loss during primary THA in 97.8% of patients) as well as the ability to provide predictions for blood transfusion in primary THA within seconds [19, 20], which distinguishes machine learning models from prior retrospective studies utilizing the conventional statistical methods including multivariate regression analysis [9, 21]. Additionally, when compared to prior retrospective studies utilizing the conventional statistical methods to identify risk factors for blood transfusion in primary THA, machine learning models possess the unique ability to quantify the weight that each risk factor has on the probability for blood transfusions in primary THA [19, 20]. Therefore, machine learning models represent a computational tool that is capable of predicting the need for blood transfusions in primary THA on a patient-by-patient basis, an aspect that cannot be achieved from the research findings presented by prior retrospective studies.
The presented machine learning models incorporated many variables that have previously been identified as risk factors for blood transfusions. Age [22,23,24], pre-operative hematocrit [22, 24], and gender [17, 23, 24] have previously been identified as risk factors for post-operative transfusion following primary total joint arthroplasty. Low pre-operative hematocrit has often been cited as the most readily modifiable risk factor to prevent transfusion [22, 24]. Enrolling patients in dedicated blood management programs to optimize anemia prior to arthroplasty has resulted in reductions in transfusions and post-operative complications [25]. The machine learning models identified tranexamic acid and a past history of bleeding disorder to be the strongest predictors of post-operative blood transfusion. The widespread use of tranexamic acid has changed blood management strategies and is largely responsible for the sharp decrease in transfusion rates following total hip and knee arthroplasty over the past 20 years [26,27,28,29]. Reductions in blood loss, post-operative anemia, and transfusion rates have also been demonstrated in revision total hip and knee arthroplasty [30, 31]. Many authors have investigated the impact of different dosing regimen and routes of administration only to find that they are nearly equal in their blood-sparing properties and consistently outperform placebo controls [32,33,34,35].
Despite the agreement for risk factors for blood transfusions in primary THA between the present machine learning study and prior retrospective work [21, 36, 37], there are differences in research findings with regards to the threshold for pre-operative hematocrit. The threshold for low pre-operative hematocrit (< 36%) as identified in this present machine learning study is higher than that of previous retrospective studies (< 30%). This may be due to the increased accuracy of machine learning methods in the analysis of large and complex datasets, with machine learning models possessing great strength in the identification of complex and non-linear relationships between numerous clinical parameters [19].
The findings of the current investigation should be interpreted within the context of its limitations and strengths. While the algorithm was developed based on data collected from a sizeable cohort of patients, their predictive capabilities may not be entirely generalizable. External validation of the algorithm using independent populations has the potential to increase clinical applicability. Another limitation inherent to machine learning is the “black box” nature of the algorithm in which associations between variables are not explicitly known. However, a notable strength of the current machine learning model is its accuracy, despite the relatively limited number of THA patients and thus administered blood transfusions following THA. The AUC exceeded 0.8 for neural networks which is the threshold for excellent model performance. Machine learning has demonstrated excellent performance in predicting blood transfusions in the general surgical population and in those undergoing total knee arthroplasty [4, 17]. Third, although there were no institutional changes in the protocol for blood transfusions over the study period, due to the retrospective nature of this study, it remains unclear how much weight and emphasize each operating surgeon placed on each patient and surgical factor for selecting blood transfusions during primary THA surgery. However, this represents a common limitation in retrospective studies on this topic [2, 17]. Fourth, this is a retrospective study and thus is subjected to all inherent limitations of retrospective study designs including reporting and recall bias. Finally, most of the risk factors were binary, and thus, this study did not evaluate the effect of disease severity. However, this represents a common limitation of machine learning studies [38, 39].
In summary, the current study developed and validated machine learning models to accurately predict patient-specific blood transfusion following primary THA. The results represent a novel application of machine learning and has the potential to improve outcomes and pre-operative planning while also reducing costs. Further investigations are needed to validate this model to expand its generalizability.
References
Fillingham YA, Ramkumar DB, Jevsevar DS et al (2018) The safety of tranexamic acid in total joint arthroplasty: a direct meta-analysis. J Arthroplasty 33:3070-3082.e1. https://doi.org/10.1016/j.arth.2018.03.031
Bedard NA, Pugely AJ, Lux NR et al (2017) Recent trends in blood utilization after primary hip and knee arthroplasty. J Arthroplasty 32:724–727. https://doi.org/10.1016/j.arth.2016.09.026
Houston BL, Fergusson DA, Falk J et al (2020) Evaluation of transfusion practices in noncardiac surgeries at high risk for red blood cell transfusion: a retrospective cohort study. Transfus Med Rev. https://doi.org/10.1016/j.tmrv.2020.08.001
Menendez ME, Lu N, Huybrechts KF et al (2016) Variation in use of blood transfusion in primary total hip and knee arthroplasties. J Arthroplasty 31:2757-2763.e2. https://doi.org/10.1016/j.arth.2016.05.022
Bert JM, Hooper J, Moen S (2017) Outpatient total joint arthroplasty. Curr Rev Musculoskelet Med 10:567–574. https://doi.org/10.1007/s12178-017-9451-2
Dorenkamp BC, Janssen MK, Janssen ME (2019) Improving blood product utilization at an ambulatory surgery center: a retrospective cohort study on 50 patients with lumbar disc replacement. Patient Saf Surg 13:45–51. https://doi.org/10.1186/s13037-019-0226-0
Kehlet H, Søballe K (2010) Fast-track hip and knee replacement—what are the issues? Acta Orthop 81:271–272
Toy PC, Fournier MN, Throckmorton TW, Mihalko WM (2018) Low rates of adverse events following ambulatory outpatient total hip arthroplasty at a free-standing surgery center. J Arthroplasty 33:46–50. https://doi.org/10.1016/j.arth.2017.08.026
Pennestrì F, Maffulli N, Sirtori P et al (2019) Blood management in fast-track orthopedic surgery: an evidence-based narrative review. J Orthop Surg Res 14:263–269. https://doi.org/10.1186/s13018-019-1296-5
Cao G, Huang Z, Huang Q et al (2018) Incidence and risk factors for blood transfusion in simultaneous bilateral total joint arthroplasty: a multicenter retrospective study. J Arthroplasty 33:2087–2091. https://doi.org/10.1016/j.arth.2018.02.041
Song K, Pan P, Yao Y et al (2019) The incidence and risk factors for allogenic blood transfusion in total knee and hip arthroplasty. J Orthop Surg Res 14:273–278. https://doi.org/10.1186/s13018-019-1329-0
Newman JM, Webb MR, Klika AK et al (2017) Quantifying blood loss and transfusion risk after primary vs conversion total hip arthroplasty. J Arthroplasty 32:1902–1909. https://doi.org/10.1016/j.arth.2017.01.038
Ramkumar PN, Haeberle HS, Bloomfield MR et al (2019) Artificial intelligence and arthroplasty at a single institution: real-world applications of machine learning to big data, value-based care, mobile health, and remote patient monitoring. J Arthroplasty 34:2204–2209. https://doi.org/10.1016/j.arth.2019.06.018
Bini SA (2018) Artificial intelligence, machine learning, deep learning, and cognitive computing: what do these terms mean and how will they impact health care? J Arthroplasty 33:2358–2361. https://doi.org/10.1016/j.arth.2018.02.067
Obermeyer Z, Emanuel EJ (2016) Predicting the future—big data, machine learning, and clinical medicine. N Engl J Med 375:1216–1219. https://doi.org/10.1056/NEJMp1606181
Kimball CC, Nichols CI, Vose JG (2019) Blood transfusion trends in primary and revision total joint arthroplasty: recent declines are not shared equally. J Am Acad Orthop Surg 27:e920–e927. https://doi.org/10.5435/JAAOS-D-18-00205
Burnett RA, Bedard NA, DeMik DE et al (2017) Recent trends in blood utilization after revision hip and knee arthroplasty. J Arthroplasty 32:3693–3697. https://doi.org/10.1016/j.arth.2017.08.038
Karhade AV, Schwab JH, Bedair HS (2019) Development of machine learning algorithms for prediction of sustained postoperative opioid prescriptions after total hip arthroplasty. J Arthroplasty 34:2272-2277.e1. https://doi.org/10.1016/j.arth.2019.06.013
Haeberle HS, Helm JM, Navarro SM et al (2019) Artificial intelligence and machine learning in lower extremity arthroplasty: a review. J Arthroplasty 34:2201–2203. https://doi.org/10.1016/j.arth.2019.05.055
Helm JM, Swiergosz AM, Haeberle HS et al (2020) Machine learning and artificial intelligence: definitions, applications, and future directions. Curr Rev Musculoskelet Med 13:69–76. https://doi.org/10.1007/s12178-020-09600-8
Pempe C, Werdehausen R, Pieroh P et al (2021) Predictors for blood loss and transfusion frequency to guide blood saving programs in primary knee- and hip-arthroplasty. Sci Rep 11:4386–4392. https://doi.org/10.1038/s41598-021-82779-z
Erben H-C, Hess F, Welter J et al (2021) Perioperative blood transfusions in hip and knee arthroplasty: a retrospective assessment of combined risk factors. Arch Orthop Trauma Surg 11:23–29. https://doi.org/10.1007/s00402-021-03763-w
Slover J, Lavery JA, Schwarzkopf R et al (2017) Incidence and risk factors for blood transfusion in total joint arthroplasty: analysis of a statewide database. J Arthroplasty 32:2684-2687.e1. https://doi.org/10.1016/j.arth.2017.04.048
To J, Sinha R, Kim SW et al (2017) Predicting perioperative transfusion in elective hip and knee arthroplasty: a validated predictive model. Anesthesiology 127:317–325. https://doi.org/10.1097/ALN.0000000000001709
Bailey A, Eisen I, Palmer A et al (2021) Preoperative anemia in primary arthroplasty patients-prevalence, influence on outcome, and the effect of treatment. J Arthroplasty 14:71–77. https://doi.org/10.1016/j.arth.2021.01.018
Fillingham YA, Ramkumar DB, Jevsevar DS et al (2018) The efficacy of tranexamic acid in total knee arthroplasty: a network meta-analysis. J Arthroplasty 33:3090-3098.e1. https://doi.org/10.1016/j.arth.2018.04.043
Fillingham YA, Ramkumar DB, Jevsevar DS et al (2018) The efficacy of tranexamic acid in total hip arthroplasty: a network meta-analysis. J Arthroplasty 33:3083-3089.e4. https://doi.org/10.1016/j.arth.2018.06.023
Melvin JS, Stryker LS, Sierra RJ (2015) Tranexamic acid in hip and knee arthroplasty. J Am Acad Orthop Surg 23:732–740. https://doi.org/10.5435/JAAOS-D-14-00223
Liu D, Dan M, Martinez Martos S, Beller E (2016) Blood management strategies in total knee arthroplasty. Knee Surg Relat Res 28:179–187. https://doi.org/10.5792/ksrr.2016.28.3.179
Hines JT, Hernandez NM, Amundson AW et al (2019) Intravenous tranexamic acid safely and effectively reduces transfusion rates in revision total hip arthroplasty. Bone Joint J 101:104–109. https://doi.org/10.1302/0301-620X.101B6.BJJ-2018-1376.R1
Hines JT, Petis SM, Amundson AW et al (2020) Intravenous tranexamic acid safely and effectively reduces transfusion rates in revision total knee arthroplasties. J Bone Joint Surg Am 102:381–387. https://doi.org/10.2106/JBJS.19.00857
Fillingham YA, Darrith B, Calkins TE et al (2019) 2019 Mark coventry award: a multicentre randomized clinical trial of tranexamic acid in revision total knee arthroplasty: does the dosing regimen matter? Bone Joint J 33:49–56. https://doi.org/10.1302/0301-620X.101B7.BJJ-2018-1451.R1
Levine BR, Haughom BD, Belkin MN, Goldstein ZH (2014) Weighted versus uniform dose of tranexamic acid in patients undergoing primary, elective knee arthroplasty: a prospective randomized controlled trial. J Arthroplasty 29:186–188. https://doi.org/10.1016/j.arth.2014.01.038
Abdel MP, Chalmers BP, Taunton MJ et al (2018) Intravenous versus topical tranexamic acid in total knee arthroplasty: both effective in a randomized clinical trial of 640 patients. J Bone Joint Surg Am 100:1023–1029. https://doi.org/10.2106/JBJS.17.00908
Gomez-Barrena E, Ortega-Andreu M, Padilla-Eguiluz NG et al (2014) Topical intra-articular compared with intravenous tranexamic acid to reduce blood loss in primary total knee replacement: a double-blind, randomized, controlled, noninferiority clinical trial. J Bone Joint Surg Am 96:1937–1944. https://doi.org/10.2106/JBJS.N.00060
Donovan RL, Lostis E, Jones I, Whitehouse MR (2021) Estimation of blood volume and blood loss in primary total hip and knee replacement: an analysis of formulae for perioperative calculations and their ability to predict length of stay and blood transfusion requirements. J Orthop 24:227–232. https://doi.org/10.1016/j.jor.2021.03.004
Carling MS, Jeppsson A, Eriksson BI, Brisby H (2015) Transfusions and blood loss in total hip and knee arthroplasty: a prospective observational study. J Orthop Surg Res 10:48–55. https://doi.org/10.1186/s13018-015-0188-6
Klemt C, Harvey MJ, Robinson MG et al (2022) Machine learning algorithms predict extended postoperative opioid use in primary total knee arthroplasty. Knee Surg Sports Traumatol Arthrosc 7:61–68. https://doi.org/10.1007/s00167-021-06812-4
Yeo I, Klemt C, Robinson MG et al (2022) The use of artificial neural networks for the prediction of surgical site infection following TKA. J Knee Surg 43:13–19. https://doi.org/10.1055/s-0041-1741396
Funding
There is no funding source.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors have no relevant financial or non-financial interests to disclose. The authors have no conflicts of interest to declare that are relevant to the content of this article. All authors certify that they have no affiliations with or involvement in any organization or entity with any financial interest or non-financial interest in the subject matter or materials discussed in this manuscript. The authors have no financial or proprietary interests in any material discussed in this article.
Ethical approval
This article does not contain any studies with human participants or animals performed by any of the authors.
Informed consent
Informed consent was obtained for the retrospective patient chart review.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Cohen-Levy, W.B., Klemt, C., Tirumala, V. et al. Artificial neural networks for the prediction of transfusion rates in primary total hip arthroplasty. Arch Orthop Trauma Surg 143, 1643–1650 (2023). https://doi.org/10.1007/s00402-022-04391-8
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00402-022-04391-8