{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,27]],"date-time":"2026-10-27T20:30:11Z","timestamp":1793133011813,"version":"4.5.0"},"reference-count":50,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2024,12,13]],"date-time":"2024-12-13T00:00:00Z","timestamp":1734048000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["72204190"],"award-info":[{"award-number":["72204190"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100002858","name":"China Postdoctoral Science Foundation","doi-asserted-by":"publisher","award":["2022M722476"],"award-info":[{"award-number":["2022M722476"]}],"id":[{"id":"10.13039\/501100002858","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Digit. Health"],"abstract":"<jats:sec><jats:title>Objective<\/jats:title><jats:p>The COVID-19 pandemic has placed unprecedented strain on healthcare systems, mainly due to the highly variable and challenging to predict patient length of stay (LOS). This study aims to identify the primary factors impacting LOS for patients before and during the COVID-19 pandemic.<\/jats:p><\/jats:sec><jats:sec><jats:title>Methods<\/jats:title><jats:p>This study collected electronic medical record data from Zhongnan Hospital of Wuhan University. We employed six machine learning algorithms to predict the probability of LOS.<\/jats:p><\/jats:sec><jats:sec><jats:title>Results<\/jats:title><jats:p>After implementing variable selection, we identified 35 variables affecting the LOS for COVID-19 patients to establish the model. The top three predictive factors were out-of-pocket amount, medical insurance, and admission deplanement. The experiments conducted showed that XGBoost (XGB) achieved the best performance. The MAE, RMSE, and MAPE errors before and during the COVID-19 pandemic are lower than 3% on average for household registration in Wuhan and non-household registration in Wuhan.<\/jats:p><\/jats:sec><jats:sec><jats:title>Conclusions<\/jats:title><jats:p>Research finds machine learning is reasonable in predicting LOS before and during the COVID-19 pandemic. This study offers valuable guidance to hospital administrators for planning resource allocation strategies that can effectively meet the demand. Consequently, these insights contribute to improved quality of care and wiser utilization of scarce resources.<\/jats:p><\/jats:sec>","DOI":"10.3389\/fdgth.2024.1506071","type":"journal-article","created":{"date-parts":[[2024,12,13]],"date-time":"2024-12-13T06:22:23Z","timestamp":1734070943000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["The application of machine learning algorithms for predicting length of stay before and during the COVID-19 pandemic: evidence from Wuhan-area hospitals"],"prefix":"10.3389","volume":"6","author":[{"given":"Yang","family":"Liu","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Renzhao","family":"Liang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Chengzhi","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2024,12,13]]},"reference":[{"key":"B1","doi-asserted-by":"publisher","first-page":"281","DOI":"10.1007\/s12098-020-03263-6","article-title":"A review of coronavirus disease-2019 (COVID-19)","volume":"87","author":"Singhal","year":"2020","journal-title":"Indian J Pediatr"},{"key":"B2","doi-asserted-by":"publisher","first-page":"200","DOI":"10.21037\/atm-20-5248","article-title":"The shortage of hospital beds for COVID-19 and non-COVID-19 patients during the lockdown of Wuhan, China","volume":"9","author":"Zhuang","year":"2021","journal-title":"Ann Transl Med"},{"key":"B3","doi-asserted-by":"publisher","first-page":"56","DOI":"10.1016\/j.jss.2020.11.062","article-title":"A closer Look into global hospital beds capacity and resource shortages during the COVID-19 pandemic","volume":"260","author":"Sen-Crowe","year":"2021","journal-title":"J Surg Res"},{"key":"B4","doi-asserted-by":"publisher","first-page":"100570","DOI":"10.1016\/j.jemep.2020.100570","article-title":"Choosing which COVID-19 patient to save? The ethical triage and rationing dilemma","volume":"15","author":"Jaziri","year":"2020","journal-title":"Ethics Med Public Health"},{"key":"B5","doi-asserted-by":"publisher","first-page":"166","DOI":"10.1093\/eurpub\/11.2.166","article-title":"Length of stay: how short should hospital care be?","volume":"11","author":"Clarke","year":"2001","journal-title":"Eur J Public Health"},{"key":"B6","doi-asserted-by":"publisher","first-page":"4049","DOI":"10.1038\/s41467-020-17922-x","article-title":"Face mask use in the general population and optimal resource allocation during the COVID-19 pandemic","volume":"11","author":"Worby","year":"2020","journal-title":"Nat Commun"},{"key":"B7","doi-asserted-by":"publisher","first-page":"e0000017","DOI":"10.1371\/journal.pdig.0000017","article-title":"A systematic review of the prediction of hospital length of stay: towards a unified framework","volume":"1","author":"Stone","year":"2022","journal-title":"PLoS Digit Health"},{"key":"B8","doi-asserted-by":"publisher","first-page":"1","DOI":"10.21203\/rs.3.rs-289075\/v1","article-title":"Forecasting the length-of-stay of pediatric patients in hospitals: a scoping review","volume":"21","author":"Medeiros","year":"2021","journal-title":"BMC Health Serv Res"},{"key":"B9","doi-asserted-by":"publisher","first-page":"105","DOI":"10.1177\/0951484817696212","article-title":"Patient length of stay and mortality prediction: a survey","volume":"30","author":"Awad","year":"2017","journal-title":"Health Serv Manage Res"},{"key":"B10","doi-asserted-by":"publisher","first-page":"S83","DOI":"10.1002\/hec.1500","article-title":"The urban resident basic medical insurance: a landmark reform towards universal coverage in China","volume":"18","author":"Lin","year":"2009","journal-title":"Health Econ"},{"key":"B11","doi-asserted-by":"publisher","first-page":"2584","DOI":"10.1016\/S0140-6736(17)33109-4","article-title":"The primary health-care system in China","volume":"390","author":"Li","year":"2017","journal-title":"Lancet"},{"key":"B12","doi-asserted-by":"publisher","first-page":"1192","DOI":"10.1016\/S0140-6736(19)32136-1","article-title":"10 Years of health-care reform in China: progress and gaps in universal health coverage","volume":"394","author":"Yip","year":"2019","journal-title":"Lancet"},{"key":"B13","doi-asserted-by":"publisher","first-page":"308","DOI":"10.1257\/aer.20161038","article-title":"The economic consequences of hospital admissions","volume":"108","author":"Dobkin","year":"2018","journal-title":"Am Economic Rev"},{"key":"B14","doi-asserted-by":"publisher","first-page":"1959","DOI":"10.1007\/s11606-018-4615-3","article-title":"Self-Identified social determinants of health during transitions of care in the medically underserved: a narrative review","volume":"33","author":"Virapongse","year":"2018","journal-title":"J Gen Intern Med"},{"key":"B15","doi-asserted-by":"publisher","first-page":"23","DOI":"10.1089\/pop.2016.0076","article-title":"An innovative approach to health care delivery for patients with chronic conditions","volume":"20","author":"Clarke","year":"2017","journal-title":"Popul Health Manag"},{"key":"B16","doi-asserted-by":"publisher","first-page":"473","DOI":"10.1016\/j.healthpol.2018.03.005","article-title":"Paying hospital specialists: experiences and lessons from eight high-income countries","volume":"122","author":"Quentin","year":"2018","journal-title":"Health Policy"},{"key":"B17","doi-asserted-by":"publisher","first-page":"149","DOI":"10.1038\/s41746-020-00355-7","article-title":"Let sleeping patients lie, avoiding unnecessary overnight vitals monitoring using a clinically based deep-learning model","volume":"3","author":"T\u00f3th","year":"2020","journal-title":"NPJ Digit Med"},{"key":"B18","doi-asserted-by":"publisher","first-page":"e2200536119","DOI":"10.1073\/pnas.2200536119","article-title":"Universal healthcare as pandemic preparedness: the lives and costs that could have been saved during the COVID-19 pandemic","volume":"119","author":"Galvani","year":"2022","journal-title":"Proc Natl Acad Sci USA"},{"key":"B19","doi-asserted-by":"publisher","first-page":"1159","DOI":"10.1111\/joms.12639","article-title":"A systematic review of the literature on digital transformation: insights and implications for strategy and organizational change","volume":"58","author":"Hanelt","year":"2021","journal-title":"J Manage Stud"},{"key":"B20","doi-asserted-by":"publisher","first-page":"29","DOI":"10.1186\/s40249-020-00646-x","article-title":"Epidemiology, causes, clinical manifestation and diagnosis, prevention and control of coronavirus disease (COVID-19) during the early outbreak period: a scoping review","volume":"9","author":"Adhikari","year":"2020","journal-title":"Infect Dis Poverty"},{"key":"B21","first-page":"43","article-title":"Linear methods for regression","volume-title":"The Elements of Statistical Learning. Springer Series in Statistics","author":"Hastie","year":"2009"},{"key":"B22","doi-asserted-by":"publisher","first-page":"104934","DOI":"10.1016\/j.envint.2019.104934","article-title":"A comparison of linear regression, regularization, and machine learning algorithms to develop Europe-wide spatial models of fine particles and nitrogen dioxide","volume":"130","author":"Chen","year":"2019","journal-title":"Environ Int"},{"key":"B23","doi-asserted-by":"publisher","first-page":"140","DOI":"10.38094\/jastt1457","article-title":"A review on linear regression comprehensive in machine learning","volume":"1","author":"Maulud","year":"2020","journal-title":"JASTT"},{"key":"B24","doi-asserted-by":"publisher","first-page":"1348","DOI":"10.1002\/bjs.10895","article-title":"LASSO Regression","volume":"105","author":"Ranstam","year":"2018","journal-title":"Br J Surg"},{"key":"B25","doi-asserted-by":"publisher","first-page":"93","DOI":"10.1002\/wics.14","article-title":"Ridge regression","volume":"1","author":"McDonald","year":"2009","journal-title":"WIRES Comp Stat"},{"key":"B26","doi-asserted-by":"crossref","DOI":"10.1007\/978-1-4419-9326-7","volume-title":"Ensemble Machine Learning: Methods and Applications","author":"Zhang","year":"2012"},{"key":"B27","doi-asserted-by":"publisher","first-page":"286","DOI":"10.1002\/for.3033","article-title":"Credit scoring prediction leveraging interpretable ensemble learning","volume":"43","author":"Liu","year":"2023","journal-title":"J Forecast"},{"key":"B28","doi-asserted-by":"publisher","DOI":"10.1214\/aos\/1031689014","article-title":"Analyzing bagging","volume":"30","author":"B\u00fchlmann","year":"2002","journal-title":"Ann Statist"},{"key":"B29","first-page":"1163","article-title":"Adaboost RT: a boosting algorithm for regression problems","author":"Solomatine","year":"2004"},{"key":"B30","first-page":"785","article-title":"XGBoost: a scalable tree boosting system","author":"Chen","year":"2016"},{"key":"B31","doi-asserted-by":"publisher","first-page":"2131","DOI":"10.1109\/TCBB.2019.2911071","article-title":"XGBoost model for chronic kidney disease diagnosis","volume":"17","author":"Ogunleye","year":"2020","journal-title":"IEEE\/ACM Trans Comput Biol and Bioinf"},{"key":"B32","doi-asserted-by":"publisher","first-page":"e623","DOI":"10.7717\/peerj-cs.623","article-title":"The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation","volume":"7","author":"Chicco","year":"2021","journal-title":"PeerJ Comput Sci"},{"key":"B33","first-page":"42","article-title":"Estimation of leaf chlorophyll content in winter wheat using variable importance for projection (VIP) with hyperspectral data","volume-title":"Remote Sensing for Agriculture, Ecosystems, and Hydrology XVII","author":"He","year":"2015"},{"key":"B34","doi-asserted-by":"publisher","first-page":"20552076231188852","DOI":"10.1177\/20552076231188852","article-title":"Generalizing factors of COVID-19 vaccine attitudes in different regions: a summary generation and topic modeling approach","volume":"9","author":"Liu","year":"2023","journal-title":"Digital Health"},{"key":"B35","doi-asserted-by":"publisher","first-page":"293","DOI":"10.1016\/j.bpa.2020.11.009","article-title":"Economic impact of COVID-19 pandemic on healthcare facilities and systems: international perspectives","volume":"35","author":"Kaye","year":"2021","journal-title":"Best Pract Res Clin Anaesthesiol"},{"key":"B36","doi-asserted-by":"publisher","first-page":"519","DOI":"10.1108\/JHTT-04-2023-0098","article-title":"Sarcasm detection in hotel reviews: a multimodal deep learning approach","volume":"15","author":"Liu","year":"2024","journal-title":"JHTT"},{"key":"B37","doi-asserted-by":"publisher","first-page":"100035","DOI":"10.1016\/j.ibmed.2021.100035","article-title":"A machine learning algorithm predicts duration of hospitalization in COVID-19 patients","volume":"5","author":"Ebinger","year":"2021","journal-title":"Intell Based Med"},{"key":"B38","doi-asserted-by":"publisher","first-page":"105344","DOI":"10.1016\/j.jstrokecerebrovasdis.2020.105344","article-title":"The impact of COVID-19 on acute ischemic stroke admissions: analysis from a community-based tertiary care center","volume":"29","author":"Wang","year":"2020","journal-title":"J Stroke Cerebrovasc Dis"},{"key":"B39","doi-asserted-by":"publisher","first-page":"6","DOI":"10.1016\/j.puhe.2020.09.010","article-title":"Hospital admission rates, length of stay, and in-hospital mortality for common acute care conditions in COVID-19 vs. pre-COVID-19 era","volume":"189","author":"Butt","year":"2020","journal-title":"Public Health"},{"key":"B40","doi-asserted-by":"publisher","first-page":"5215","DOI":"10.3390\/ijerph19095215","article-title":"Machine learning and lean six sigma to assess how COVID-19 has changed the patient management of the complex operative unit of neurology and stroke unit: a single center study","volume":"19","author":"Improta","year":"2022","journal-title":"IJERPH"},{"key":"B41","doi-asserted-by":"publisher","first-page":"346","DOI":"10.3238\/arztebl.m2021.0219","article-title":"COVID-19 reveals opportunities for better care of stroke patients: direct transfer to postacute rehabilitation, reduction in length of stay, and treatment outcomes","volume":"118","author":"Studer","year":"2021","journal-title":"Dtsch Arztebl Int"},{"key":"B42","doi-asserted-by":"publisher","first-page":"1383648","DOI":"10.3389\/fpsyt.2024.1383648","article-title":"Leveraging ChatGPT to optimize depression intervention through explainable deep learning","volume":"15","author":"Liu","year":"2024","journal-title":"Front Psychiatry"},{"key":"B43","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1186\/1472-6947-5-3","article-title":"Comparison of artificial neural network and logistic regression models for prediction of mortality in head trauma based on initial clinical data","volume":"5","author":"Eftekhar","year":"2005","journal-title":"BMC Med Inform Decis Mak"},{"key":"B44","doi-asserted-by":"publisher","first-page":"60","DOI":"10.3390\/informatics10030060","article-title":"Towards a universal privacy model for electronic health record systems: an ontology and machine learning approach","volume":"10","author":"Nowrozy","year":"2023","journal-title":"Informatics"},{"key":"B45","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1186\/s40985-019-0112-4","article-title":"Healthcare human resource development in Saudi Arabia: emerging challenges and opportunities\u2014a critical review","volume":"40","author":"Al-Hanawi","year":"2019","journal-title":"Public Health Rev"},{"key":"B46","doi-asserted-by":"publisher","first-page":"103282","DOI":"10.1016\/j.im.2020.103282","article-title":"Data analytics for the sustainable use of resources in hospitals: predicting the length of stay for patients with chronic diseases","volume":"59","author":"Zolbanin","year":"2022","journal-title":"Inf Manage"},{"key":"B47","doi-asserted-by":"publisher","first-page":"69","DOI":"10.1038\/s41746-019-0148-3","article-title":"Artificial intelligence and machine learning in clinical development: a translational perspective","volume":"2","author":"Shah","year":"2019","journal-title":"NPJ Digit Med"},{"key":"B48","doi-asserted-by":"publisher","first-page":"17601","DOI":"10.1007\/s00521-020-04937-0","article-title":"Electronic word-of-mouth effects on studio performance leveraging attention-based model","volume":"32","author":"Liu","year":"2020","journal-title":"Neural Comput Applic"},{"key":"B49","doi-asserted-by":"publisher","first-page":"24","DOI":"10.1038\/s41591-018-0316-z","article-title":"A guide to deep learning in healthcare","volume":"25","author":"Esteva","year":"2019","journal-title":"Nat Med"},{"key":"B50","doi-asserted-by":"publisher","first-page":"3451","DOI":"10.1038\/s41598-021-83075-6","article-title":"Optimal control of the COVID-19 pandemic: controlled sanitary deconfinement in Portugal","volume":"11","author":"Silva","year":"2021","journal-title":"Sci Rep"}],"container-title":["Frontiers in Digital Health"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fdgth.2024.1506071\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,12,13]],"date-time":"2024-12-13T06:22:27Z","timestamp":1734070947000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/fdgth.2024.1506071\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,12,13]]},"references-count":50,"alternative-id":["10.3389\/fdgth.2024.1506071"],"URL":"https:\/\/doi.org\/10.3389\/fdgth.2024.1506071","relation":{},"ISSN":["2673-253X"],"issn-type":[{"value":"2673-253X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,12,13]]},"article-number":"1506071"}}