Next Article in Journal
Association Between Plasma Granzyme B Levels, Organ Failure, and 28-Day Mortality Prediction in Patients with Sepsis
Previous Article in Journal
Treatment Outcomes of Simple and Complex Central Serous Chorioretinopathy
Previous Article in Special Issue
Association of Opioid Prescription with Major Adverse Cardiovascular Events: Nationwide Cohort Study
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Postoperative Pain and Side Effects of Patient-Controlled Analgesia in Pediatric Orthopedic Patients Using Machine Learning: A Retrospective Study

1
Department of Anesthesiology and Pain Medicine, Asan Medical Center, University of Ulsan College of Medicine, Seoul 05505, Republic of Korea
2
Department of Public Health Sciences, Graduate School of Public Health, Seoul National University, Seoul 08826, Republic of Korea
3
Department of Anesthesiology and Pain Medicine, Anesthesia and Pain Research Institute, Yonsei University College of Medicine, Seoul 03722, Republic of Korea
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
J. Clin. Med. 2025, 14(5), 1459; https://doi.org/10.3390/jcm14051459
Submission received: 27 December 2024 / Revised: 6 February 2025 / Accepted: 12 February 2025 / Published: 21 February 2025
(This article belongs to the Special Issue Pain Management: Current Challenges and Future Prospects)

Abstract

:
Background/Objectives: Appropriate postoperative management, especially in pediatric patients, can be challenging for anesthesiologists. This retrospective study used machine learning to investigate the effects and complications of patient-controlled analgesia (PCA) in children undergoing orthopedic surgery. Methods: The medical records of children who underwent orthopedic surgery in a single tertiary hospital and received intravenous and epidural PCA were analyzed. Predictive models were developed using machine learning, and various demographic, anesthetic, and surgical factors were investigated to predict postoperative pain and complications associated with PCA. Results: Data from 1968 children were analyzed. Extreme gradient boosting effectively predicted moderate postoperative pain for the 6–24-h (area under curve (AUC): 0.85, accuracy (ACC): 0.79) and 24–48-h (AUC: 0.89, ACC: 0.87) periods after surgery. The factors that predicted moderate postoperative pain included the pain score immediately before the measurement period, the total amount of opioid infused, and age. For predicting side effects during the 6–24-h period after surgery, a least absolute shrinkage and selection operator model (AUC: 0.75, ACC: 0.64) was selected, while a random forest model (AUC: 0.91, ACC: 0.87) was chosen for the 24–48-h period post-surgery. The factors that predicted complications included the occurrence of side effects immediately before the measurement period, the total amount of opioid infused before the measurement period, and age. Conclusions: This retrospective study introduces machine-learning-based models and factors aimed at forecasting moderate postoperative pain and complications of PCA in children undergoing orthopedic surgery. This research has the potential to enhance postoperative pain management strategies for children.

1. Introduction

Postoperative pain management for pediatric patients is challenging due to various factors, including limited experience, insufficient assessment tools, variations in pain perception and analgesic needs among individuals, differences in pharmacokinetics and pharmacology between children and adults, and constraints in administering analgesics to children [1]. Inadequate pain management in pediatric patients can lead to sleep disturbances and altered pain responses, potentially contributing to the development of chronic pain [2,3]. Managing postoperative pain in pediatric patients following orthopedic surgery remains problematic [4], with concerns regarding the potential over-prescription of opioids in patients with poorly managed pain [5]. Moreover, individual variability exists in opioid responses [6,7], and effective communication can be challenging in pediatric patients undergoing scoliosis surgery. As a result, PCA often fails to provide adequate analgesia for relieving postoperative pain in children. Moreover, the utilization of PCA in children may be restricted due to apprehensions, such as respiratory depression, excessive sedation, programming errors, patient monitoring challenges, and PCA administration by proxy.
Patient-controlled analgesia (PCA) has been applied to manage postoperative pain in pediatric patients [8,9,10,11,12]. Nevertheless, PCA frequently falls short of delivering adequate analgesia to alleviate postoperative pain in children. The utilization of PCA in children may be restricted due to apprehensions, such as respiratory depression, excessive sedation, programming errors, patient monitoring challenges, and PCA administration by proxy [13]. By predicting the effects of PCA and identifying factors associated with its side effects, PCA can be administered more effectively and safely in pediatric patients undergoing surgery.
Machine learning (ML) holds promise in influencing various aspects of anesthesiology practice, spanning from perioperative assistance to critical care provision and outpatient pain management [14]. ML is employed for prognostic forecasting in pediatric medical domains, particularly in risk assessment among patients in intensive care units [15,16,17]. To our knowledge, there have been no investigations on the application of ML in assessing the effects of PCA for postoperative pain management in pediatric patients.
In pediatric patients, as in adults [18], preoperative risk stratification is crucial. This process necessitates the identification of various risk factors. Therefore, this study aimed to develop an ML-based model that is capable of predicting the effects and complications of PCA and investigating the factors influencing PCA in children undergoing orthopedic surgery.

2. Materials and Methods

2.1. Study Design and Ethics

This study was conducted on patients under 12 years of age who used intravenous PCA following pediatric orthopedic surgery from January 2013 to June 2021. The inclusion criteria involved patients with complete PCA records available for up to 48 h after surgery. Data from patients with height or weight exceeding 2 standard deviations and those who underwent multiple surgeries were excluded from the analysis. Raw PCA data were collected from the electronic medical record system using the Severance Clinical Research Analysis Portal.
This retrospective study was approved by the Institutional Review Board of the Yonsei University Health System, Seoul, Republic of Korea (4-2021-1185, date of approval: 18 October 2021), and the requirement for patient consent was waived.

2.2. Anesthetic Management and PCA Composition

General anesthesia was administered according to the standard institutional protocol. Standard monitoring, including pulse oximetry, electrocardiography, and non-invasive blood pressure measurement, was performed upon the arrival of the patient in the operating room. Anesthesia was induced using propofol (2 mg/kg) and rocuronium (0.6 mg/kg) and maintained using sevoflurane. Depending on the type of surgery, a regional block was performed when necessary.
The intravenous PCA regimen included 10–15 mcg/kg of fentanyl mixed with 100 mL of 0.9% normal saline, based on the surgery type and patient’s age. The basal rate was set at 2 mL per hour, the bolus analgesia for breakthrough pain was set at 0.5 mL, and the lock-out time was set to 15 min. PCA was administered 30 min before the end of the surgery.
The epidural PCA regimen included 0.15% ropivacaine mixed with 500 mL of 0.9% normal saline. The basal rate was set at 0.15 mL/kg per hour (maximum of 6 mL), the bolus analgesia for breakthrough pain was set at 0.1 mL/kg (maximum of 4 mL), and the lockout time was set to 30 min.

2.3. Variables and Outcome Measures

The covariates used in the ML model are provided in Table 1. The variables were divided into patient-, surgery-, anesthesia-, and postoperative-related factors.
We considered four types of binary outcome variables: moderate pain, severe pain, side effects, and nausea/vomiting (N/V). Moderate pain was defined as a pain score of 4–7, and severe pain was defined as a pain score of 7 or more. The Face-Legs-Activity-Cry-Consolability Scale was used for pediatric patients aged 3 years or younger, and the Wong–Baker Faces Scale was used for pediatric patients aged 4 years or older. The side effects evaluated included N/V, oversedation, dizziness, urinary incontinence, headache, pruritis, and respiratory depression. If any side effects occurred during any PCA period, it was classified as an occurrence. The severity of nausea was rated on a scale of 1 to 3, with mild nausea defined as 1, nausea requiring medication as 2, and nausea with vomiting as 3 points. N/V of 2 points or more was considered a side effect. These four outcome variables were measured 6–24 h and 24–48 h after orthopedic surgery, resulting in eight outcome variables for the analysis.

2.4. Statistical Analysis

2.4.1. Machine Learning Methods and Model Selection

We considered the following six ML methods [19] to predict postoperative pain and side effects of PCA after surgery: (i) penalized logistic regression models with least absolute shrinkage and selection operator (LASSO) and ridge penalties, developed using the glmnet R package [20]; (ii) support vector machines (SVMs) with linear and radial basis kernels, created using the kernlab R package [21]; and (iii) random forest (RF) and extreme gradient boosting (XGB), performed using the randomForest and xgboost R packages [22,23]. Each method has tuning parameters (or hyperparameters), and the optimal tuning parameters were selected by stratified five-fold cross-validation (CV) using grid search over various combinations of the hyperparameters that maximized the performance metrics, as shown in Supplementary Table S1. The stratified five-fold CV approach ensures that the proportion of events for each fold is approximately the same, which is recommended for the imbalanced binary outcome variables [24].
The cross-validated area under the curve (AUC) and the cross-validated accuracy (ACC) are computed to evaluate the prediction performance of the six ML methods. We aggregated the predicted outcomes from each hold-out dataset and calculated a single cross-validated AUC value using all the predicted and the observed outcomes simultaneously [25]. The method showing the maximum AUC and ACC was selected as the best result.

2.4.2. Variable Importance

For each outcome, we identified the top 10 most important features from the final model fitted to the full dataset with the optimal tuning parameter. We used the rminer package [26] to measure variable importance for the six ML methods. To explain how the variable importance of x 1 is computed, consider the final prediction model f ^ ( x ) , where x = ( x 1 , x 2 , , x p ) are p-dimensional features. We calculated the average absolute deviation (AAD) for x 1 as [26]:
A A D x 1 = 1 7 j = 1 7 f ^ x 1 j , x 1 ¯ M e d i a n k { f ^ x 1 k , x 1 ¯ }
where x 1 ¯ = x 2 ¯ , , x p ¯ denotes the mean values for all except x 1 . A similar formula applies to other inputs. To make these values lie within [0, 1] for convenience, we reported r a = A A D x a / a = 1 p A A D x a as the variable importance for x a .

2.4.3. Descriptive Analysis

Continuous variables are expressed as mean ± standard deviation (SD) or as median (interquartile range) and categorical variables as number (percentage). A p-value of <0.05 was considered statistically significant. All statistical analyses were performed using R version 4.3.3 (https://www.r-project.org/).

3. Results

3.1. Patient Characteristics

The medical records of 2630 patients were obtained from the electronic medical record system and included in this study. However, data from 662 patients were excluded due to missing values, multiple surgeries during a single hospitalization, or discharge on postoperative day 1. Thus, data from a total of 1968 patients aged less than 12 years who underwent orthopedic surgery between 2013 and 2021 were analyzed in this study (Figure 1). The baseline characteristics of all included patients are detailed in Table 2.

3.2. Outcome Measures

3.2.1. Pain Score

Table 3 describes the average pain scores, postoperative pain severity, and occurrence of side effects for each time interval. Within 6–24 h after surgery, 356 patients (18.1%) reported moderate to severe pain, and among them, 50 patients (2.5%) experienced severe pain. Between 24 and 48 h after surgery, 100 patients (10.6%) experienced moderate to severe pain, and 10 patients (1.1%) reported severe pain.
Among the six models assessed, those with high AUC and ACC values were selected. Table 4 shows the top three prediction performances of each ML model. The XGB model emerged as the best performer in predicting moderate pain (AUC: 0.85, ACC: 0.79) and severe pain (AUC: 0.88, ACC: 0.76) during the 6–24-h post-surgery periods. The LASSO model was chosen for predicting moderate pain (AUC 0.89, ACC 0.87) and severe pain (AUC 0.98, ACC 0.96) during 24–48-h periods after surgery.
Variables such as the pain score immediately before the measurement period, total opioid amount until the measurement period, operation time, and patient age were associated with both moderate to severe pain and severe pain within 6–24 h after surgery (Figure 2). The most important variable for predicting moderate and severe pain within 24–48 h post-surgery was the pain score recorded during the 6–24-h period.

3.2.2. Side Effects

The overall occurrence rate of side effects was 16.5%. Specifically, within 6–24 h after surgery, the incidence of side effects was 6.1% (121 patients), and within 24–48 h after surgery, it was 1.7% (33 patients). Nausea and vomiting, a significant side effect, were observed in 90 patients (4.6%) within 6–24 h after surgery and in 23 patients (1.2%) within 24–48 h after surgery (Table 3).
The LASSO model (AUC: 0.75, ACC: 0.64) and the RF model (AUC: 0.91, ACC: 0.87) emerged as the top-performing models for predicting side effects during the 6–24-h and the 24–48-h postoperative periods, respectively. Regarding the prediction of nausea and vomiting, the most prevalent side effect, the Ridge model (AUC: 0.72, ACC: 0.77) was selected for the 6–24-h postoperative period, while the XGB model (AUC: 0.91, ACC: 0.81) was chosen for the 24–48-h postoperative period (Table 4).
For the prediction performances by age (6 years and under, over 6 years), the younger subgroup showed slightly higher AUC and ACC compared to the older subgroup. Overall, both subgroups performed similarly to the whole sample. The details about the top three prediction results are provided in Supplementary Table S5.
The main predictors of side effects included the occurrence of side effects immediately before the measurement period, total opioid infusion amount, and patient age. Additionally, the most significant variable for predicting N/V after surgery was the presence of N/V immediately before the measurement period (Figure 3).

4. Discussion

Our study aimed to predict postoperative pain and side effects in pediatric patients using PCA following orthopedic surgery. We developed an ML-based model that was capable of predicting moderate and severe pain for up to 48 h after surgery. We assessed six ML models, including RF, SVM, XGB, LASSO, and Ridge, and selected those with the highest AUC and ACC values. The chosen models had AUC and ACC values exceeding 0.8 [27], indicating their effectiveness in predicting postoperative pain and side effects. Postoperative pain and adverse effects are influenced by a wide range of factors, including patient characteristics, anesthesia, and surgical variables. Therefore, predicting these outcomes is inherently challenging. Considering these complexities, our models can be evaluated as having strong predictive performance. By applying this model to various patient variables, we can better anticipate and proactively manage postoperative pain and side effects associated with PCA. Additionally, among the predictive factors, prior occurrences of pain and side effects had the highest variable importance, highlighting the need for more active intervention by clinicians. The models predicting pain and side effects varied at each time point. This finding suggests the need to develop an appropriate predictive model tailored to the timing of pain and side effects. Furthermore, ML-based models could be beneficial in predicting pain and preventing the side effects of PCA. For patients expected to experience pain or side effects, a machine learning model can be utilized to predict risk stratification before surgery, allowing for adjustments to the PCA regimen accordingly.
Various variables were used to develop the model for predicting postoperative pain, and the importance of each variable was verified (Figure 2). The main variables that predicted postoperative pain were the pain score during the previous time period, age, sex, BMI, ASA classification, and the total amount of opioids infused. Among them, the ASA classification and BMI are variables identified for the first time in this study [28]. In patients undergoing orthopedic surgeries such as scoliosis correction, severe preoperative pain is associated with increased postoperative pain [29], and more than 50% of patients experience persistent pain after surgery [30,31]. Considering the findings of this study together, proactive pain management before, during, and after surgery is essential. By incorporating these variables into pain prevention and treatment strategies following orthopedic surgery, the outcomes of pediatric patients could be improved.
We also identified factors associated with the side effects of PCA through ML-based modeling. Similar to the model predicting pain, factors such as prior occurrences of side effects, age, BMI, and the type of surgery were associated with the likelihood of side effects. In patients with these clinical risk factors, the amount of antiemetics mixed in PCA should be increased, or the patient should be closely monitored for the need for additional antiemetics and managed accordingly.
Our study has several limitations. First, our study did not consider the pain score and side effects between immediately after surgery and 6 h after surgery. The primary objective of this study was to develop a model to predict the effects and side effects of PCA. Therefore, the decision was made to exclude data from PCA administered 30 min before the end of the surgery, as this period was deemed insufficient to achieve adequate plasma concentrations. Instead, this study focused on evaluating postoperative pain and side effects during the 6–24-h and 24–48-h periods after surgery. However, as pain is most severe immediately after surgery (Table 3), future research is needed to develop predictive models targeting pain and side effects during this immediate postoperative period. Second, our study is retrospective and used data from a single tertiary center. It evaluated a heterogeneous cohort comprising various surgical types and a wide range of pediatric age groups. Additionally, there were no significant variations in the dose of the PCA regimen or the rescue medication administered. Prospective, large-scale, multicenter trials are needed to enhance postoperative pain control in pediatric patients. Third, the class imbalance (e.g., 24–48 h severe pain events) problem is a potential limitation. Although we used a stratified 5-fold CV to address imbalanced binary outcomes, the rare event of severe pain may still affect the model’s performance. Consequently, it is necessary to interpret the results for severe pain during the 24–48 h period carefully. Further research is required to explore more effective methods for dealing with rare events.

5. Conclusions

This retrospective study demonstrated that ML-based models effectively predicted postoperative pain and side effects in children using PCA after orthopedic surgery. The use of ML can potentially improve postoperative pain management in pediatric patients.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/jcm14051459/s1, Table S1: Hyperparameter settings for the six machine learning methods; Table S2: Categories of surgical procedure; Table S3: Covariates according to pain score during postoperative 6–24 h; Table S4: Covariates according to pain score during postoperative 24–48 h; Table S5: Subgroup analysis by age group.

Author Contributions

Y.-E.J.: data curation, writing—original draft preparation; N.H.: formal analysis, investigation, data curation; W.L.: methodology, validation, writing—review and editing; H.-J.B.: conceptualization, writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

This retrospective study was approved by the Institutional Review Board of the Yonsei University Health System (4-2021-1185, 18 October 2021).

Informed Consent Statement

The requirement for patient consent was waived.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available to ensure confidentiality.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Brasher, C.; Gafsous, B.; Dugue, S.; Thiollier, A.; Kinderf, J.; Nivoche, Y.; Grace, R.; Dahmani, S. Postoperative pain management in children and infants: An update. Paediatr. Drugs 2014, 16, 129–140. [Google Scholar] [CrossRef]
  2. Taddio, A.; Katz, J. The effects of early pain experience in neonates on pain responses in infancy and childhood. Paediatr. Drugs 2005, 7, 245–257. [Google Scholar] [CrossRef]
  3. Fortier, M.A.; Chou, J.; Maurer, E.L.; Kain, Z.N. Acute to chronic postoperative pain in children: Preliminary findings. J. Pediatr. Surg. 2011, 46, 1700–1705. [Google Scholar] [CrossRef]
  4. Frizzell, K.H.; Cavanaugh, P.K.; Herman, M.J. Pediatric Perioperative Pain Management. Orthop. Clin. North Am. 2017, 48, 467–480. [Google Scholar] [CrossRef] [PubMed]
  5. Johnson, M.A.; Andras, L.M.; Andras, L.E.; Ellington, M.D.; Upasani, V.V.; Shah, A.S. What’s New in Pain Management for Pediatric Orthopaedic Surgery. J. Pediatr. Orthop. 2021, 41, e923–e928. [Google Scholar] [CrossRef] [PubMed]
  6. Tyler, D.C.; Pomietto, M.; Womack, W. Variation in opioid use during PCA in adolescents. Pediatr. Anesth. 1996, 6, 33–38. [Google Scholar] [CrossRef]
  7. Woodhouse, A.; Ward, E.M.; E Mather, L. Intra-subject variability in post-operative patient-controlled analgesia (PCA): Is the patient equally satisfied with morphine, pethidine and fentanyl? Pain 1999, 80, 545–553. [Google Scholar] [CrossRef] [PubMed]
  8. Franson, H.E. Postoperative patient-controlled analgesia in the pediatric population: A literature review. Aana J. 2010, 78, 374–378. [Google Scholar]
  9. Berde, C.B.; Lehn, B.M.; Yee, J.D.; Sethna, N.F.; Russo, D. Patient-controlled analgesia in children and adolescents: A randomized, prospective comparison with intramuscular administration of morphine for postoperative analgesia. J. Pediatr. 1991, 118, 460–466. [Google Scholar] [CrossRef] [PubMed]
  10. Lim, L.; Jang, Y.E.; Kim, E.H.; Lee, J.H.; Kim, J.T.; Kim, H.S. Comparison of the Effects of Sufentanil and Fentanyl in Intravenous Patient-Controlled Analgesia after Pediatric Moyamoya Surgery: A Retrospective Study. Pediatr. Neurosurg. 2020, 55, 36–41. [Google Scholar] [CrossRef] [PubMed]
  11. Choi, S.H.; Lee, W.K.; Lee, S.J.; Bai, S.J.; Lee, S.H.; Park, B.Y.; Min, K.T. Parent-controlled analgesia in children undergoing cleft palate repair. J. Korean Med. Sci. 2008, 23, 122–125. [Google Scholar] [CrossRef]
  12. Chiaretti, A.; Genovese, O.; Antonelli, A.; Tortorolo, L.; Ruggiero, A.; Focarelli, B.; Di Rocco, C. Patient-controlled analgesia with fentanil and midazolam in children with postoperative neurosurgical pain. Childs Nerv. Syst. 2008, 24, 119–124. [Google Scholar] [CrossRef] [PubMed]
  13. Ocay, D.D.; Otis, A.; Teles, A.R.; Ferland, C.E. Safety of Patient-Controlled Analgesia After Surgery in Children And Adolescents: Concerns And Potential Solutions. Front. Pediatr. 2018, 6, 336. [Google Scholar] [CrossRef] [PubMed]
  14. Hashimoto, D.A.; Witkowski, E.; Gao, L.; Meireles, O.; Rosman, G. Artificial Intelligence in Anesthesiology: Current Techniques, Clinical Applications, and Limitations. Anesthesiology 2020, 132, 379–394. [Google Scholar] [CrossRef]
  15. Ramgopal, S.; Horvat, C.M.; Yanamala, N.; Alpern, E.R. Machine Learning to Predict Serious Bacterial Infections in Young Febrile Infants. Pediatrics 2020, 146, e20194096. [Google Scholar] [CrossRef]
  16. Dong, J.; Feng, T.; Thapa-Chhetry, B.; Cho, B.G.; Shum, T.; Inwald, D.P.; Newth, C.J.L.; Vaidya, V.U. Machine learning model for early prediction of acute kidney injury (AKI) in pediatric critical care. Crit. Care 2021, 25, 288. [Google Scholar] [CrossRef] [PubMed]
  17. Shah, N.; Arshad, A.; Mazer, M.B.; Carroll, C.L.; Shein, S.L.; Remy, K.E. The use of machine learning and artificial intelligence within pediatric critical care. Pediatr. Res. 2023, 93, 405–412. [Google Scholar] [CrossRef] [PubMed]
  18. Lamperti, M.; Romero, C.S.; Guarracino, F.; Cammarota, G.; Vetrugno, L.; Tufegdzic, B.; Lozsan, F.; Macias Frias, J.J.; Duma, A.; Bock, M.; et al. Preoperative assessment of adults undergoing elective noncardiac surgery: Updated guidelines from the European Society of Anaesthesiology and Intensive Care. Eur. J. Anaesthesiol. 2025, 42, 1–35. [Google Scholar] [CrossRef] [PubMed]
  19. Hastie, T.; Tibshirani, R.; Friedman, J.H.; Friedman, J.H. The Elements of Statistical Learning: Data Mining, Inference, and Prediction; Springer: Berlin/Heidelberg, Germany, 2009; Volume 2. [Google Scholar]
  20. Friedman, J.; Hastie, T.; Tibshirani, R.; Narasimhan, B.; Tay, K.; Simon, N.; Qian, J.; Package ‘glmnet’. CRAN R Repositary 2021. Available online: https://cran.r-project.org/web/packages/glmnet/index.html (accessed on 15 November 2022).
  21. Karatzoglou, A.; Smola, A.; Hornik, K.; Karatzoglou, M.A.; Package ‘kernlab’. CRAN R Project 2019. Available online: https://www.vps.fmvz.usp.br/CRAN/web/packages/kernlab/kernlab.pdf (accessed on 15 November 2022).
  22. Liaw, M.A. Package ‘Randomforest’; University of California: Berkeley, CA, USA, 2018. [Google Scholar]
  23. Liu, B.; Ou, G.; Chen, Y.; Zhang, J. Inhibition of protein tyrosine phosphatase 1B protects against sevoflurane-induced neurotoxicity mediated by ER stress in developing brain. Brain Res. Bull. 2019, 146, 28–39. [Google Scholar] [CrossRef] [PubMed]
  24. Prusty, S.; Patnaik, S.; Dash, S.K. SKCV: Stratified K-fold cross-validation on ML classifiers for predicting cervical cancer. Front. Nanotechnol. 2022, 4, 972421. [Google Scholar] [CrossRef]
  25. Parker, B.J.; Günter, S.; Bedo, J. Stratification bias in low signal microarray studies. BMC Bioinform. 2007, 8, 326. [Google Scholar] [CrossRef] [PubMed]
  26. Cortez, P.; Cortez, M.P.; Package ‘rminer’. Teaching Report 2016, 59. Available online: http://r.meteo.uni.wroc.pl/web/packages/rminer/rminer.pdf (accessed on 15 November 2022).
  27. Alba, A.C.; Agoritsas, T.; Walsh, M.; Hanna, S.; Iorio, A.; Devereaux, P.J.; McGinn, T.; Guyatt, G. Discrimination and calibration of clinical prediction models: Users’ guides to the medical literature. JAMA 2017, 318, 1377–1384. [Google Scholar] [CrossRef]
  28. Koh, J.C.; Lee, J.; Kim, S.Y.; Choi, S.; Han, D.W. Postoperative Pain and Intravenous Patient-Controlled Analgesia-Related Adverse Effects in Young and Elderly Patients: A Retrospective Analysis of 10,575 Patients. Medicine 2015, 94, e2008. [Google Scholar] [CrossRef] [PubMed]
  29. Charalampidis, A.; Rundberg, L.; Möller, H.; Gerdhem, P. Predictors of persistent postoperative pain after surgery for idiopathic scoliosis. J. Child. Orthop. 2021, 15, 458–463. [Google Scholar] [CrossRef]
  30. Seki, H.; Ideno, S.; Ishihara, T.; Watanabe, K.; Matsumoto, M.; Morisaki, H. Postoperative pain management in patients undergoing posterior spinal fusion for adolescent idiopathic scoliosis: A narrative review. Scoliosis 2018, 13, 17. [Google Scholar] [CrossRef]
  31. Wong, G.T.C.; Yuen, V.M.Y.; Chow, B.F.M.; Irwin, M.G. Persistent pain in patients following scoliosis surgery. Eur. Spine J. 2007, 16, 1551–1556. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Flow sheet of patient enrollment. EMR, electronic medical record; POD, postoperative day.
Figure 1. Flow sheet of patient enrollment. EMR, electronic medical record; POD, postoperative day.
Jcm 14 01459 g001
Figure 2. Variable importance in predicting moderate and severe pain. ASA PS, American Society of Anesthesiologists physical status; BMI, body mass index; LASSO, least absolute shrinkage and selection operator; PCA, patient-controlled analgesia; XGB, extreme gradient boosting.
Figure 2. Variable importance in predicting moderate and severe pain. ASA PS, American Society of Anesthesiologists physical status; BMI, body mass index; LASSO, least absolute shrinkage and selection operator; PCA, patient-controlled analgesia; XGB, extreme gradient boosting.
Jcm 14 01459 g002
Figure 3. Variable importance in predicting side effects and nausea/vomiting. BMI, body mass index; LASSO, least absolute shrinkage and selection operator; N/V, nausea/vomiting; PCA, patient-controlled analgesia; RF, random forest; XGB, extreme gradient boosting.
Figure 3. Variable importance in predicting side effects and nausea/vomiting. BMI, body mass index; LASSO, least absolute shrinkage and selection operator; N/V, nausea/vomiting; PCA, patient-controlled analgesia; RF, random forest; XGB, extreme gradient boosting.
Jcm 14 01459 g003
Table 1. Covariates used in machine learning models.
Table 1. Covariates used in machine learning models.
Patient-relatedAnesthesia-related
AgeType of PCA (IV, epidural)
SexPCA-related
HeightTotal amount of opioid infused (mcg)
WeightAdjuvant pain killer mixed
BMI (categorical: <18.5, 18.5–25, ≥25)Anti-emetics mixed
ASA PS
Surgery-relatedPost-operative
Operation timePain score in PACU
Complexity of surgeryPain score 0–6 h postoperatively
Co-operationPain score 6–24 h postoperatively
Emergency operationAnalgesia used in ward
ASA PS, American Society of Anesthesiologists physical status; BMI, body mass index; PACU, post-anesthetic care unit; PCA, patient-controlled analgesia.
Table 2. Baseline characteristics of patients.
Table 2. Baseline characteristics of patients.
Variablen = 1968
Age (years)8.06 ± 3.16
Female893 (45.4)
Height (cm)126.68 ± 21.87
Weight (kg)30.84 ± 14.87
BMI (kg/m2)
 <181234 (62.7)
 18–25611 (31.0)
 ≥25123 (6.2)
ASA PS
 1869 (44.2)
 2928 (47.2)
 3171 (8.7)
Operation time (min)154.75 ± 113.73
Anesthesia time (min)174.63 ± 129.26
Data are expressed as the mean ± standard deviation or count (%), as appropriate. ASA PS, American Society of Anesthesiologists physical status; BMI, body mass index.
Table 3. Postoperative pain score and incidence of side effects.
Table 3. Postoperative pain score and incidence of side effects.
OverallSex GroupAge Group
MenWomenpAge ≤ 11 < Age ≤ 6Age > 6p
n19681075893 815031384
Postoperative period 0–6 h
 Pain score2.33 ± 2.442.33 ± 2.392.34 ± 2.490.9390.70 ± 1.571.44 ± 2.032.75 ± 2.49<0.001
 Severity of pain 0.283 <0.001
   Mild (<4)1384 (70.3)765 (71.2)619 (69.3) 77 (95.1)415 (82.5)892 (64.5)
   Moderate (≥4, <7)466 (23.7)254 (23.6)212 (23.7) 3 (3.7)78 (15.5)385 (27.8)
   Severe (≥7)117 (5.9)55 (5.1)62 (6.9) 1 (1.2)10 (2.0)106 (7.7)
 Any side effect172 (8.7)102 (9.5)70 (7.8)0.2263 (3.7)29 (5.8)140 (10.1)0.003
 Nausea/vomiting121 (6.1)69 (6.4)52 (5.8)0.653 (3.7)18 (3.6)100 (7.2)0.009
Postoperative period 6–24 h
 Pain score1.58 ± 2.391.48 ± 1.971.69 ± 2.810.050.41 ± 1.510.96 ± 2.961.87 ± 2.13<0.001
 Severity of pain 0.244 <0.001
   Mild (<4)1607 (81.7)894 (83.2)713 (79.8) 78 (96.3)453 (90.1)1076 (77.7)
   Moderate (≥4, <7)306 (15.5)155 (14.4)151 (16.9) 0 (0.0)39 (7.8)267 (19.3)
   Severe (≥7)50 (2.5)23 (2.1)27 (3.0) 3 (3.7)9 (1.8)38 (2.7)
 Any side effect121 (6.1)71 (6.6)50 (5.6)0.4061 (1.2)10 (2.0)110 (7.9)<0.001
 Nausea/vomiting90 (4.6)50 (4.7)40 (4.5)0.9421 (1.2)9 (1.8)80 (5.8)<0.001
Postoperative period 24–48 h
 Pain score0.99 ± 1.691.02 ± 1.740.96 ± 1.640.5580.35 ± 1.350.48 ± 1.261.21 ± 1.80<0.001
 Severity of pain 0.125 0.023
   Mild (<4)846 (43.0)448 (41.7)398 (44.6) 38 (46.9)226 (44.9)582 (42.1)
   Moderate (≥4, <7)90 (4.6)42 (3.9)48 (5.4) 1 (1.2)11 (2.2)78 (5.6)
   Severe (≥7)10 (0.5)7 (0.7)3 (0.3) 1 (1.2)1 (0.2)8 (0.6)
 Any side effect33 (1.7)21 (2.0)12 (1.3)0.3830 (0.0)5 (1.0)28 (2.0)0.149
 Nausea/vomiting23 (1.2)13 (1.2)10 (1.1)10 (0.0)3 (0.6)20 (1.4)0.192
Data are expressed as the mean ± standard deviation or count (%), as appropriate.
Table 4. Top three prediction results of each machine learning model for eight outcomes.
Table 4. Top three prediction results of each machine learning model for eight outcomes.
SpecificitySensitivityACCAUC
Moderate pain 6–24 hXGB0.790.790.790.85
LASSO0.870.670.830.84
RF0.850.70.830.84
Severe pain 6–24 hXGB0.750.880.760.88
RF0.790.760.790.85
LASSO0.920.640.910.83
Moderate pain 24–48 hLASSO0.870.880.870.89
Ridge0.80.890.810.89
XGB0.850.890.860.88
Severe pain 24–48 hLASSO0.9610.960.98
XGB0.9310.930.98
RF0.940.90.940.96
Side effect 6–24 hLASSO0.630.740.640.75
XGB0.660.710.660.74
Ridge0.630.740.640.74
Side effect 24–48 hRF0.870.820.870.91
Ridge0.860.880.860.9
XGB0.80.910.80.89
Nausea/vomiting 6–24 hRidge0.780.520.770.72
XGB0.50.860.520.72
LASSO0.380.920.40.72
Nausea/vomiting 24–48 hXGB0.810.870.810.91
Ridge0.90.830.90.89
RF0.780.780.780.85
AUC, cross-validated area under the curve; ACC, cross-validated accuracy; LASSO, least absolute shrinkage and selection operator; RF, random forest; XGB, extreme gradient boosting.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Joe, Y.-E.; Ha, N.; Lee, W.; Byon, H.-J. Prediction of Postoperative Pain and Side Effects of Patient-Controlled Analgesia in Pediatric Orthopedic Patients Using Machine Learning: A Retrospective Study. J. Clin. Med. 2025, 14, 1459. https://doi.org/10.3390/jcm14051459

AMA Style

Joe Y-E, Ha N, Lee W, Byon H-J. Prediction of Postoperative Pain and Side Effects of Patient-Controlled Analgesia in Pediatric Orthopedic Patients Using Machine Learning: A Retrospective Study. Journal of Clinical Medicine. 2025; 14(5):1459. https://doi.org/10.3390/jcm14051459

Chicago/Turabian Style

Joe, Young-Eun, Nayoung Ha, Woojoo Lee, and Hyo-Jin Byon. 2025. "Prediction of Postoperative Pain and Side Effects of Patient-Controlled Analgesia in Pediatric Orthopedic Patients Using Machine Learning: A Retrospective Study" Journal of Clinical Medicine 14, no. 5: 1459. https://doi.org/10.3390/jcm14051459

APA Style

Joe, Y.-E., Ha, N., Lee, W., & Byon, H.-J. (2025). Prediction of Postoperative Pain and Side Effects of Patient-Controlled Analgesia in Pediatric Orthopedic Patients Using Machine Learning: A Retrospective Study. Journal of Clinical Medicine, 14(5), 1459. https://doi.org/10.3390/jcm14051459

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop