Application of XGBoost in the prediction of acute postoperative pain after major noncardiac surgery in older patients
Open Access
- 26 August 2025
- journal article
- Published by SAGE Publications in Molecular Pain
- Vol. 21
Abstract
Background: Acute postoperative pain (APP) are key factors in the recovery of surgical patients after surgery. This study used the machine learning eXtreme Gradient Boosting (XGBoost) algorithm for the prediction of acute postoperative pain after major noncardiac surgery in older patients. Methods: This was a secondary analysis of data from a randomized controlled trial containing 1720 older patients undergoing general anesthesia. The training and test sets were divided according to the timeline. The Boruta function was made to screen for relevant characteristic variables. The XGBoost model was built on the training set using 10-fold cross-validation and hyperparameter optimization, and the tuned optimal model plotted the importance ranking diagram of feature variables, partial dependence profile (PDP) and Break down profile (BDP). The optimal model was used to calculate the confusion matrices and their parameters for the training and validation sets, and to plot the receiver operating characteristic curve (ROC), precision recall curve (PRC), calibration curve and Clinical decision curve (CDC) on the validation set. Results: The Boruta function was used to screen the relevant characteristic variables, and the screened postoperative acute pain characteristic variables were CHARLSON score, Mini-Mental State Examination (MMSE), duration of surgery, preoperative depression score, smoking or not, duration of anesthesia, intraoperative mean heart rate, lidocaine dosage, age, intraoperative morphine dosage, grouping, preoperative anxiety score, loperamide dosage, intraoperative colloid amount, APACHE -II score, postoperative ICU or not, surgical site and postoperative tracheal intubation or not. Test set and validation set accuracy (ACC) for acute postoperative pain: 0.921 and 0.871; AUC-ROC: 0.964 and 0.920; AUC-PRC: 0.983 and 0.959; Brier: 0.067 and 0.098; Matthews Correlation Coefficient (MCC): 0.847 and 0.746. Conclusions: A high-performance algorithm was developed and validated to predict the degree of change in postoperative pain; controlling important characterizing variables may be helpful for postoperative analgesia.Keywords
Funding Information
- Beijing Shijitan Hospital Academic Leader Program (2024DTRMHH)
This publication has 29 references indexed in Scilit:
- Current issues in postoperative pain managementEuropean Journal of Anaesthesiology, 2016
- Research Gaps in Practice Guidelines for Acute Postoperative Pain Management in Adults: Findings From a Review of the Evidence for an American Pain Society Clinical Practice GuidelineThe Journal of Pain, 2016
- A Prospective Multicentre Study to Improve Postoperative Pain: Identification of Potentialities and ProblemsPLOS ONE, 2015
- Identification and Comparison of Barriers to Assessing and Combating Acute and Postoperative Pain in Elderly Patients in Surgical Wards of Polish Hospitals: A Multicenter StudyAdvances in Clinical and Experimental Medicine, 2015
- Research design considerations for chronic pain prevention clinical trialsPain, 2015
- PAIN OUT: The making of an international acute pain registryEuropean journal of pain, 2014
- Article Commentary: Defining New Directions for More Effective Management of Surgical Pain in the United States: Highlights of the Inaugural Surgical Pain Congress™The American Surgeon™, 2014
- Postoperative pain assessment after septorhinoplastyEuropean Archives of Oto-Rhino-Laryngology, 2011
- Evidence-Based Surgical Care and the Evolution of Fast-Track SurgeryAnnals of Surgery, 2008
- Interpretation of visual analog scale ratings and change scores: a reanalysis of two clinical trials of postoperative painThe Journal of Pain, 2003