Machine Learning and Regression Analysis to Model the Length of Hospital Stay in Patients with Femur Fracture

Bioengineering (Basel). 2022 Apr 14;9(4):172. doi: 10.3390/bioengineering9040172.

Abstract

Fractures of the femur are a frequent problem in elderly people, and it has been demonstrated that treating them with a diagnostic-therapeutic-assistance path within 48 h of admission to the hospital reduces complications and shortens the length of the hospital stay (LOS). In this paper, the preoperative data of 1082 patients were used to further extend the previous research and to generate several models that are capable of predicting the overall LOS: First, the LOS, measured in days, was predicted through a regression analysis; then, it was grouped by weeks and was predicted with a classification analysis. The KNIME analytics platform was applied to divide the dataset for a hold-out cross-validation, perform a multiple linear regression and implement machine learning algorithms. The best coefficient of determination (R2) was achieved by the support vector machine (R2 = 0.617), while the mean absolute error was similar for all the algorithms, ranging between 2.00 and 2.11 days. With regard to the classification analysis, all the algorithms surpassed 80% accuracy, and the most accurate algorithm was the radial basis function network, at 83.5%. The use of these techniques could be a valuable support tool for doctors to better manage orthopaedic departments and all their resources, which would reduce both waste and costs in the context of healthcare.

Keywords: clinical pathway; machine learning; multiple linear regression; orthopaedic.