header advert
You currently have no access to view or download this content. Please log in with your institutional or personal account if you should have access to through either of these
The Bone & Joint Journal Logo

Receive monthly Table of Contents alerts from The Bone & Joint Journal

Comprehensive article alerts can be set up and managed through your account settings

View my account settings

Get Access locked padlock


Artificial neural network prediction of same-day discharge following primary total knee arthroplasty based on preoperative and intraoperative variables

Download PDF



This study used an artificial neural network (ANN) model to determine the most important pre- and perioperative variables to predict same-day discharge in patients undergoing total knee arthroplasty (TKA).


Data for this study were collected from the National Surgery Quality Improvement Program (NSQIP) database from the year 2018. Patients who received a primary, elective, unilateral TKA with a diagnosis of primary osteoarthritis were included. Demographic, preoperative, and intraoperative variables were analyzed. The ANN model was compared to a logistic regression model, which is a conventional machine-learning algorithm. Variables collected from 28,742 patients were analyzed based on their contribution to hospital length of stay.


The predictability of the ANN model, area under the curve (AUC) = 0.801, was similar to the logistic regression model (AUC = 0.796) and identified certain variables as important factors to predict same-day discharge. The ten most important factors favouring same-day discharge in the ANN model include preoperative sodium, preoperative international normalized ratio, BMI, age, anaesthesia type, operating time, dyspnoea status, functional status, race, anaemia status, and chronic obstructive pulmonary disease (COPD). Six of these variables were also found to be significant on logistic regression analysis.


Both ANN modelling and logistic regression analysis revealed clinically important factors in predicting patients who can undergo safely undergo same-day discharge from an outpatient TKA. The ANN model provides a beneficial approach to help determine which perioperative factors can predict same-day discharge as of 2018 perioperative recovery protocols.

Cite this article: Bone Joint J 2021;103-B(8):1358–1366.

Correspondence should be sent to Alex Gu. E-mail:

For access options please click here