Skip to main content

Using Machine Learning Models to Predict the Length of Stay in a Hospital Setting

  • Conference paper
  • First Online:
Trends and Innovations in Information Systems and Technologies (WorldCIST 2020)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1159))

Included in the following conference series:

Abstract

Proper prediction of Length Of Stay (LOS) has become increasingly important these years. The LOS prediction provides better services, managing hospital resources and controls their costs. In this paper, we implemented and compared two Machine Learning (ML) methods, the Random Forest (RF) and the Gradient Boosting model (GB), using an open source available dataset. This data are been firstly preprocessed by combining data transformation, data standardization and data codification. Then, the RF and the GB were carried out, with a phase of hyper parameters tuning until setting optimal coefficients. Finally, the Mean Square Error (MAE), the R-squared (\(R^{2}\)) and the Adjusted R-squared (Adjusted \(R^{2}\)) metrics are selected to evaluate model with parameters.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Khosravizadeh, O., Vatankhah, S., Bastani, P., Kalhor, R., Alirezaei, S., Doosty, F.: Factors affecting length of stay in teaching hospitals of a middle-income country. Electron. Phys. 8(10), 3042–3047 (2016)

    Article  Google Scholar 

  2. Carter, E.M., Potts, H.W.: Predicting length of stay from an electronic patient record system: a primary total knee replacement example. BMC Med. Inform. Decis. Mak. 14(1), 1–13 (2014)

    Article  Google Scholar 

  3. Fédération Hospitalière de France: Le PMSI: des objectifs et une standardisation des données pour le service public hospitalier et les établissements privés de soin (2019)

    Google Scholar 

  4. Turgeman, L., May, J.H., Sciulli, R.: Insights from a machine learning model for predicting the hospital Length of Stay (LOS) at the time of admission. Expert Syst. Appl. 78, 376–385 (2017)

    Article  Google Scholar 

  5. Shea, S., Sideli, R.V., Dumouchel, W., Pulver, G., Arons, R.R., Clayton, P.D.: Computer-generated informational messages directed to physicians: effect on length of hospital stay. J. Am. Med. Inform. Assoc. 2(1), 58–64 (1995)

    Article  Google Scholar 

  6. Rigal, M.: Management des lits et durée moyenne de séjour: Exemple de recherche d’optimisation au Centre Hospitalier d’Avignon. Ph.D. thesis (2009)

    Google Scholar 

  7. Rowan, M., Ryan, T., Hegarty, F., Hare, N.O.: The use of artificial neural networks to stratify the length of stay of cardiac patients based on preoperative and initial postoperative factors. Artif. Intell. Med. 40, 211–221 (2007)

    Article  Google Scholar 

  8. Lafaro, R.J., Pothula, S., Kubal, K.P., Inchiosa, M.A., Pothula, V.M., Yuan, S.C., Maerz, D.A., Montes, L., Oleszkiewicz, S.M., Yusupov, A., Perline, R., Inchiosa, M.A.: Neural network prediction of ICU length of stay following cardiac surgery based on pre- incision variables. Plos One 10(12), 1–19 (2015)

    Article  Google Scholar 

  9. Chuang, M.T., Hu, Y.H., Tsai, C.F., Lo, C.L., Lin, W.C.: The identification of prolonged length of stay for surgery patients. In: Proceedings - 2015 IEEE International Conference on Systems, Man, and Cybernetics, SMC 2015, pp. 3000–3003 (2016)

    Google Scholar 

  10. Loshin, D.: Data consolidation and integration. In: Master Data Management, pp. 177–199. Elsevier (2009)

    Google Scholar 

  11. Gentimis, T., Alnaser, A.J., Durante, A., Cook, K., Steele, R.: Predicting hospital length of stay using neural networks on MIMIC III data. In: IEEE 15th International Conference on Dependable, Autonomic and Secure Computing, 15th International Conference on Pervasive Intelligence and Computing, 3rd International Conferece on Big Data Intelligence and Computing and Cyber Science and Technology Congress (DASC/PiCom/DataCom/CyberSciTech), pp. 1194–1201 (2017)

    Google Scholar 

  12. Li, J.S., Tian, Y., Liu, Y.F., Shu, T., Liang, M.H.: Applying a BP neural network model to predict the length of hospital stay. In: LNCS, vol. 7798, pp. 18–29. Springer, Heidelberg (2013)

    Google Scholar 

  13. Pendharkar, P.C., Khurana, H.: Machine learning techniques for predicting hospital length of stay in Pennsylvania federal and specialty hospitals. Int. J. Comput. Sci. Appl. 11, 45–56 (2014)

    Google Scholar 

  14. Aghajani, S., Kargari, M.: Determining factors influencing length of stay and predicting length of stay using data mining in the general surgery department. Hospital Pract. Res. (HPR) 1(2), 53–58 (2016)

    Google Scholar 

  15. Johnson, A.E., Pollard, T.J., Shen, L., Lehman, L.W.H., Feng, M., Ghassemi, M., Moody, B., Szolovits, P., Anthony Celi, L., Mark, R.G.: MIMIC-III, a freely accessible critical care database. Sci. Data 3, 1–9 (2016)

    Google Scholar 

  16. Microsoft: Predicting Hospital Length of Stay (2017)

    Google Scholar 

  17. Brownlee, J.: Why One-Hot encode data in machine learning? (2017)

    Google Scholar 

  18. Carnevale, R.: Understanding Gradient Boosting, Part 1 - Data Stuff (2015)

    Google Scholar 

Download references

Acknowledgments

The authors would like to thank the region of Hauts-de-France (FEDER funds) and the company Alicante (https://www.alicante.fr/) for the funding and their support and contributions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rachda Naila Mekhaldi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mekhaldi, R.N., Caulier, P., Chaabane, S., Chraibi, A., Piechowiak, S. (2020). Using Machine Learning Models to Predict the Length of Stay in a Hospital Setting. In: Rocha, Á., Adeli, H., Reis, L., Costanzo, S., Orovic, I., Moreira, F. (eds) Trends and Innovations in Information Systems and Technologies. WorldCIST 2020. Advances in Intelligent Systems and Computing, vol 1159. Springer, Cham. https://doi.org/10.1007/978-3-030-45688-7_21

Download citation

Publish with us

Policies and ethics