Artificial Intelligence-Based Prediction of Postoperative Blood Loss in Cardiac Surgery in Samutsakhon Hospital
Keywords:
open heart surgery, artificial intelligenceAbstract
Objective: To develop and compare the performance of artificial intelligence–based models for predicting blood loss volume within the first 4 hours after open heart surgery and for identifying patients at risk of postoperative bleeding greater than 400 mL, and to evaluate their potential application as a clinical decision-support tool
Methods: A retrospective descriptive study was conducted in 530 patients who underwent open heart surgery at Samutsakhon Hospital between January 1, 2019, and April 30, 2025. Preoperative, intraoperative, and postoperative clinical data were used to develop supervised machine learning models, including Random Forest, HistGradientBoosting, and XGBoost. The models were designed to predict both postoperative bleeding greater than 400 mL within 4 hours (classification task) and continuous blood loss volume (regression task). Model development was performed using Python programming language. Hyperparameter tuning was conducted using 3-fold cross-validation, and model performance was subsequently evaluated using 5-fold cross-validation. Classification performance was assessed using precision, recall, F1-score, accuracy, and area under the receiver operating characteristic curve (ROC AUC), whereas regression performance was evaluated using mean absolute error (MAE), root mean square error (RMSE), and coefficient of determination (R²).
Results: Patients with postoperative bleeding greater than 400 mL within 4 hours had lower preoperative platelet counts, longer aortic cross-clamp time, longer cardiopulmonary bypass time, and significantly different surgical procedures (χ² = 9.43; p = .02), with combined coronary artery bypass grafting (CABG) and valve surgery occurring more frequently in the high-bleeding group. Among the evaluated models, XGBoost demonstrated the best classification performance, achieving a precision of 0.783, recall of 0.684, F1-score of 0.728, accuracy of 0.909, and ROC AUC of 0.923. For continuous blood loss prediction, XGBoost achieved a MAE of 85.17 mL, RMSE of 119.80 mL, and R² of 0.620. Predicted values showed good agreement with observed blood loss, although a tendency toward underestimation was observed in patients with extremely high bleeding volumes.
Conclusion: The XGBoost model demonstrated strong potential as a clinical decision-support tool for assessing the risk and volume of postoperative bleeding following open heart surgery. Its application may facilitate perioperative blood management and improve clinical decision-making regarding blood preparation and resource utilization.
References
Klein AA, Collier T, Yeates J, Miles LF, Fletcher SN, Evans C, et al. The ACTA PORT-score for predicting perioperative risk of blood transfusion for adult cardiac surgery. Br J Anaesth. 2017;119(3):394–401. doi: 10.1093/bja/aex205.
Cunha CBCD, Lima TA, Ferraz DLM, Silva ITC, Santiago MKD, Sena GR, et al. Predicting the need for blood transfusions in cardiac surgery: A comparison between machine learning algorithms and established risk scores in the Brazilian Population. Braz J Cardiovasc Surg. 2024;39(2):e20230212. doi: 10.21470/1678-9741-2023-0212.
Liu S, Zhou R, Xia XQ, Ren H, Wang LY, Sang RR, et al. Machine learning models to predict red blood cell transfusion in patients undergoing mitral valve surgery. Ann Transl Med. 2021;9(7):530. doi: 10.21037/atm-20-7375.
Boyko Y, Rasmussen SB, Bartoszko J, van Klei WA, McCluskey S, Karkouti K, et al. Blood transfusion and acute kidney injury after cardiac surgery: A retrospective observational study. Can J Anaesth. 2025;72(10):1534–43. doi: 10.1007/s12630-025-03036-9.
Meybohm P, Richards T, Isbister J, Hofmann A, Shander A, Goodnough LT, et al. Patient blood management bundles to facilitate implementation. Transfus Med Rev. 2017;31(1):62–71. doi: 10.1016/j.tmrv.2016.05.012.
Karkouti K, O'Farrell R, Yau TM, Beattie WS. Prediction of massive blood transfusion in cardiac surgery. Can J Anaesth. 2006;53(8):781–94. doi: 10.1007/BF03022795.
Hanley JA, McNeil BJ. A method of comparing the areas under receiver operating characteristic curves derived from the same cases. Radiology. 1983;148(3):839–43. doi: 10.1148/radiology.148.3.6878708.
Paparella D, Yau TM, Young E. Cardiopulmonary bypass induced inflammation: pathophysiology and treatment. An update. Eur J Cardiothorac Surg. 2002;21(2):232–44. doi: 10.1016/s1010-7940(01)01099-5.
Kim HJ, Kim JE, Lee JY, Lee SH, Jung JS, Son HS. Perioperative red blood cell transfusion is associated with adverse cardiovascular outcomes in heart valve surgery. Anesth Analg. 2023;137(1):153–61. doi: 10.1213/ANE.0000000000006245.
Patel NN, Avlonitis VS, Jones HE, Reeves BC, Sterne JAC, Murphy GJ. Indications for red blood cell transfusion in cardiac surgery: A systematic review and meta-analysis. Lancet Haematol. 2015;2(12):e543–53. doi: 10.1016/S2352-3026(15)00198-2.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Region 4-5 Medical Journal

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
ลิขสิทธิ์บทความเป็นของผู้เขียนบทความ แต่หากผลงานของท่านได้รับการพิจารณาตีพิมพ์ลงวารสารแพทย์เขต 4-5 จะคงไว้ซึ่งสิทธิ์ในการตีพิมพ์ครั้งแรกด้วยเหตุที่บทความจะปรากฎในวารสารที่เข้าถึงได้ จึงอนุญาตให้นำบทความในวารสารไปใช้ประโยชน์ได้ในเชิงวิชาการโดยจำเป็นต้องมีการอ้างอิงถึงชื่อวารสารอย่างถูกต้อง แต่ไม่อนุญาตให้นำไปใช้ในเชิงพาณิชย์
