Background: Postoperative pain is one of the most common complications after surgery. In order to detect early and intervene in time for moderate to severe postoperative pain, it is necessary to identify risk factors and construct clinical prediction models. This study aimed to identify significant risk factors and establish a better-performing model to predict moderate to severe acute postoperative pain after orthopedic surgery under general anesthesia.
Methods: Patients who underwent orthopedic surgery under general anesthesia were divided into patients with moderate to severe pain group (group P) and patients without moderate to severe pain group (group N) based on VAS scores. The features selected by Lasso regression were processed by the random forest and multivariate logistic regression models to predict pain outcomes. The classification performance of the two models was evaluated through the testing set. The area under the curves (AUC), the accuracy of the classifiers, and the classification error rate for both classifiers were calculated, the better-performing model was used to predict moderate to severe acute postoperative pain after orthopedic surgery under general anesthesia.
Results: A total of 327 patients were enrolled in this study (228 in the training set and 99 in the testing set). The incidence of moderate to severe postoperative pain was 41.3%. The random forest model revealed a classification error rate of 25.2% and an AUC of 0.810 in the testing set. The multivariate logistic regression model revealed a classification error rate of 31.3% and an AUC of 0.764 in the testing set. The random forest model was chosen for predicting clinical outcomes in this study. The risk factors with the greatest and second contribution were immobilization and duration of surgery, respectively.
Conclusions: The random forest model can be used to predict moderate to severe acute postoperative pain after orthopedic surgery under general anesthesia, which is of potential clinical application value.
Keywords: Analgesia; Logistic regression model; Machine learning; Pain prediction; Random forest model.
© 2023. The Author(s).