Development of a machine learning modelto estimate length of stay in coronaryartery bypass grafting
DOI:
https://doi.org/10.11606/s1518-8787.2024058006161Palavras-chave:
Length of Stay, Machine Learning, Coronary Artery BypassResumo
OBJECTIVE: To develop and validate a predictive model utilizing machine-learning techniques for estimating the length of hospital stay among patients who underwent coronary artery bypass grafting.
METHODS: Three machine learning models (random forest, extreme gradient boosting and neural networks) and three traditional regression models (Poisson regression, linear regression, negative binomial regression) were trained in a dataset of 9,584 patients who underwent coronary artery bypass grafting between January 2017 and December 2021. The data were collected from hospital discharges from 133 centers in Brazil. Algorithms were ranked by calculating the root mean squared logarithmic error (RMSLE). The top performing algorithm was validated in a never-before-seen database of 2,627 patients. We also developed a model with the top ten variables to improve usability.
RESULTS: The random forest technique produced the model with the lowest error. The RMLSE was 0.412 (95%CI 0.405–0.419) on the training dataset and 0.454 (95%CI 0.441–0.468) on the validation dataset. Non-elective surgery, admission to a public hospital, heart failure, and age had the greatest impact on length of hospital stay.
CONCLUSIONS: The predictive model can be used to generate length of hospital stay indices that could be used as markers of efficiency and identify patients with the potential for prolonged hospitalization, helping the institution in managing beds, scheduling surgeries, and allocating resources.
Referências
Gomes WJ, Moreira RS, Zilli AC, Bettiati Jr LC, Figueira FAMS, D’ Azevedo SSP, et al. The brazilian registry of adult patient undergoing cardiovascular surgery, the BYPASS project: results of the first 1,722 patients. Braz J Cardiovasc Surg. 2017;32(2):71-6. https://doi.
org/10.21470/1678-9741-2017-0053
Organisation for Economic Cooperation and Development. Hospital discharges and average length of stay. In: Health at a Glance 2021: OECD Indicators. Paris: OECD Publishing; 2021. https://doi.org/10.1787/18faaea9-en
Stone K, Zwiggelaar R, Jones P, Mac Parthaláin NM. A systematic review of the prediction of hospital length of stay: Towards a unified framework. PLOS Digit Health. 2022;1(4):e0000017. https://doi.org/10.1371/journal.pdig.0000017
Deo RC. Machine learning in medicine: Will this time be different? Circulation. 2020;142(16):1521-3. https://doi.org/10.1161/circulationaha.120.050583
Obermeyer Z, Emanuel EJ. Predicting the future – big data, machine learning, and clinical medicine. N Engl J Med. 2016;375(13):1216-9. https://doi.org/10.1056/NEJMp1606181
Rajkomar A, Dean J, Kohane I. Machine learning in medicine. N Engl J Med. 2019;380(14):1347-58. https://doi.org/10.1056/NEJMra1814259
Stevens LM, Mortazavi BJ, Deo RC, Curtis L, Kao DP. Recommendations for reporting machine learning analyses in clinical research. Circ Cardiovasc Qual Outcomes. 2020;13(10):e006556. https://doi.org/10.1161/CIRCOUTCOMES.120.006556
Austin PC, van Klaveren D, Vergouwe Y, Nieboer D, Lee DS, Steyerberg EW. Geographic and temporal validity of prediction models: different approaches were useful to examine model performance. J Clin Epidemiol. 2016;79:76-85. https://doi.org/10.1016/j.jclinepi.2016.05.007
Moons KGM, Altman DG, Reitsma JB, Loannidis JPA, Macaskill P, Steyerberg EW, et al. Transparent Reporting of a multivariable prediction model for Individual Prognosis Or Diagnosis (TRIPOD): Explanation and Elaboration. Translation in to Russian. Dig Diagn. 2022;3(3):232-322. https://doi.org/10.17816/DD110794
Lundberg SM, Lee SI. A unified approach to interpreting model predictions. arXiv. 2017;arXiv:1705.07874v2. https://doi.org/10.48550/arXiv.1904.07204
Bradshaw TJ, Huemann Z, Hu J, Rahmim A. A guide to cross-validation for artificial intelligence in medical imaging. Radiol Artif Intell. 2023;5(4): e220232. https://doi.org/10.1148/ryai.220232
Muhlestein WE, Akagi DS, Davies JM, Chambless LB. Predicting inpatient length of stay after brain tumor surgery: developing machine learning ensembles to improve predictive performance. Neurosurgery. 2019;85(3):384-93. https://doi.org/10.1093/neuros/nyy343
Hastie T, Tibshirani R, Friedman J. The elements of statistical learning: data mining, inference, and prediction. New York: Springer; 2008
Alba AC, Agoritsas T, Walsh M, Hanna S, Iorio A, Devereaux PJ, et al. Discrimination and calibration of clinical prediction models: users’ guides to the medical literature. JAMA. 2017;318(14):1377-84. https://doi.org/10.1001/jama.2017.12126
Finlayson SG, Subbaswamy A, Singh K, Bowers J, Kupke A, Zittrain J, et al. The clinician and dataset shift in artificial intelligence. N Engl J Med. 2021;385(3):283-6. https://doi.org/10.1056/nejmc2104626
Subbaswamy A, Saria S. From development to deployment: dataset shift, causality, and shift-stable models in health AI. Biostatistics. 2020;21(2):345-52. https://doi.org/10.1093/biostatistics/kxz041
Saria S, Subbaswamy A. Tutorial: safe and reliable machine learning. arXiv. 2019;arXiv:1904.07204. https://doi.org/10.48550/arXiv.1904.07204
Ryo M, Rillig MC. Statistically reinforced machine learning for nonlinear patterns and variable interactions. Ecosphere. 2017;8(11):e01976. https://doi.org/10.1002/ecs2.1976
Breiman L. Random forests. Mach Learn. 2001;45:5-32. https://doi.org/10.1023/a:1010933404324
Ambale-Venkatesh B, Yang X, Wu CO, Liu K, Hundley WG, McClelland R, et al. Cardiovascular event prediction by machine learning: the multi-ethnic study of atherosclerosis. Circ Res. 2017;121(9):1092-101. https://doi.org/10.1161/CIRCRESAHA.117.311312
Shahian DM, Edwards FH, Ferraris VA, Haan CK, Rich JB, Normand SLT, et al. Quality measurement in adult cardiac surgery: part 1 - conceptual framework and measure selection. Ann Thorac Surg. 2007;83(4 Suppl):S3-12. https://doi.org/10.1016/j.athoracsur.2007.01.053
Cocker JD, Messaoudi J, Stockman BA, Bossaert LL, Rodrigus IER. Preoperative prediction of intensive care unit stay following cardiac surgery. Eur J Cardiothorac Surg. 2011;39(1):60-7. https://doi.org/10.1016/j.ejcts.2010.04.015
Nilsson J, Algotsson L, Hoglund P, Luhrs C, Brandt J. EuroSCORE predicts intensive care unit stay and costs of open-heart surgery. Ann Thorac Surg. 2004;78(5):1528-34. https://doi.org/10.1016/j.athoracsur.2004.04.060
Peterson ED, Coombs LP, Ferguson TB, Shroyer AL, DeLong ER, Grover FL, et al. Hospital variability in length of stay after coronary artery bypass surgery: results from the Society of Thoracic Surgeon’s National Cardiac Database. Ann Thorac Surg. 2002;74(2):464-73. https://doi.org/10.1016/s0003-4975(02)03694-9
Alshakhs F, Alharthi H, Aslam N, Khan IU, Elasheri M. Predicting postoperative length of stay for isolated coronary artery bypass graft patients using machine learning. Int J Gen Med.2020;13:751-62. https://doi.org/10.2147/IJGM.S250334
Osnabrugge RL, Speir AM, Head SJ, Jones PG, Ailawadi G, Fonner CE, et al. Prediction of costs and length of stay in coronary artery bypass grafting. Ann Thorac Surg. 2014;98(4):1286-93. https://doi.org/10.1016/j.athoracsur.2014.05.073
Triana AJ, Vyas R, Shah AS, Tiwari V. Predicting length of stay of coronary artery bypass grafting patients using machine learning. J Surg Res. 2021;264:68-75. https://doi.org/10.1016/j.jss.2021.02.003
Fávero LP, Belfiore P. Manual de análise de dados: estatística e modelagem multivariada com Excel, SPSS e Stata. Rio de Janeiro: Elsevier; 2017.
Almashrafi A, Alsabti H, Mukaddirov M, Balan B, Aylin P. Factors associated with prolonged length of stay following cardiac surgery in a major referral hospital in Oman: a retrospective observational study. BMJ Open. 2016;6(6):e010764. https://doi.org/10.1136/bmjopen-2015-010764
Lazar HL, Fitzgerald C, Gross S, Heeren T, Aldea GS, Shemin RJ. Determinants of length of stay after coronary artery bypass graft surgery. Circulation. 1995;92(9 Suppl):II20-4. https://doi.org/10.1161/01.cir.92.9.20
Downloads
Publicado
Edição
Seção
Licença
Copyright (c) 2024 Renato Camargos Couto, Tania Pedrosa, Luciana Moreira Seara, Vitor Seara Couto, Carolina Seara Couto
Este trabalho está licenciado sob uma licença Creative Commons Attribution 4.0 International License.