» Articles » PMID: 34971918

Machine Learning Using Preoperative Patient Factors Can Predict Duration of Surgery and Length of Stay for Total Knee Arthroplasty

Overview
Date 2021 Dec 31
PMID 34971918
Citations 12
Authors
Affiliations
Soon will be listed here.
Abstract

Background: Total knee arthroplasty (TKA) is one of the most resource-intensive, high-volume surgical procedures. Two drivers of the cost of TKAs are duration of surgery (DOS) and postoperative inpatient length of stay (LOS). The ability to predict TKA DOS and LOS has substantial implications for hospital finances, scheduling, and resource allocation. The goal of this study was to predict DOS and LOS for elective unilateral TKAs using machine learning models (MLMs) based on preoperative factors.

Methods: The American College of Surgeons (ACS) National Surgical and Quality Improvement (NSQIP) database was queried for unilateral TKAs from 2014 to 2019. The dataset was split into training, validation, and testing based on year. Models (linear, tree-based, and multilayer perceptron (MLP)) were fitted to the training set in scikit-learn and PyTorch, with hyperparameters tuned on the validation set. The models were trained to minimize the mean squared error (MSE). Models with the best performance on the validation set were evaluated on the testing set according to 1) MSE, 2) buffer accuracy, and 3) classification accuracy, with results compared to a mean regressor.

Results: A total of 302,300 patients were included in this study. During validation, the PyTorch MLPs had the best MSEs for DOS (0.918) and LOS (0.715). During testing, the PyTorch MLPs similarly performed best based on MSEs for DOS (0.896) and LOS (0.690). While the scikit-learn MLP yielded the best 30-minute buffer accuracy for DOS (78.8%), the PyTorch MLP provided the best 1-day buffer accuracy for LOS (75.2%). Nearly all the ML models were more accurate than the mean regressors for both DOS and LOS.

Conclusion: Conventional and deep learning models performed better than mean regressors for predicting DOS and LOS of unilateral elective TKA patients based on preoperative factors. Future work should include operational factors to improve overall predictions.

Citing Articles

Leveraging machine learning for duration of surgery prediction in knee and hip arthroplasty - a development and validation study.

Langenberger B, Schrednitzki D, Halder A, Busse R, Pross C BMC Med Inform Decis Mak. 2025; 25(1):106.

PMID: 40033378 PMC: 11877953. DOI: 10.1186/s12911-025-02927-7.


Employing a low-code machine learning approach to predict in-hospital mortality and length of stay in patients with community-acquired pneumonia.

Chen H, Zhang S, Matsumoto H, Tsuchiya N, Yamada C, Okasaki S Sci Rep. 2025; 15(1):309.

PMID: 39747905 PMC: 11697236. DOI: 10.1038/s41598-024-82615-0.


Explainable predictions of a machine learning model to forecast the postoperative length of stay for severe patients: machine learning model development and evaluation.

Cho H, Ahn I, Gwon H, Kang H, Kim Y, Seo H BMC Med Inform Decis Mak. 2024; 24(1):350.

PMID: 39563368 PMC: 11577810. DOI: 10.1186/s12911-024-02755-1.


Predicting the Length of Stay of Cardiac Patients Based on Pre-Operative Variables-Bayesian Models vs. Machine Learning Models.

Abdurrab I, Mahmood T, Sheikh S, Aijaz S, Kashif M, Memon A Healthcare (Basel). 2024; 12(2).

PMID: 38255136 PMC: 10815919. DOI: 10.3390/healthcare12020249.


Prediction of Complications and Prognostication in Perioperative Medicine: A Systematic Review and PROBAST Assessment of Machine Learning Tools.

Arina P, Kaczorek M, Hofmaenner D, Pisciotta W, Refinetti P, Singer M Anesthesiology. 2023; 140(1):85-101.

PMID: 37944114 PMC: 11146190. DOI: 10.1097/ALN.0000000000004764.