ABSTRACT
Chronic postsurgical pain (CPSP) after cesarean delivery can severely impair the mother's quality of life and her ability to care for the infant. The aim of this study was to develop and validate a high‐performance, interpretable, machine learning–based prediction model to identify high‐risk factors for chronic incisional pain at 3, 6, and 12 months postoperatively and chronic non‐incisional pain at 12 months postoperatively. A total of 678 patients who underwent elective cesarean delivery at our hospital were included in the prospective study. A total of 38 preoperative, intraoperative, and postoperative variables, including demographic characteristics, psychological scale scores, and anesthesia/analgesia regimens, were collected. We combined the Boruta algorithm, recursive feature elimination, and the Mantel test for feature selection and constructed a high‐performance machine learning–based prediction model (MLPM‐CPSP‐CD). The incidence of chronic incisional pain at 3, 6, and 12 months postoperatively was 12.39%, 9.73%, and 7.96%, respectively, whereas the incidence of chronic non‐incisional pain was 24.04%. The MLPM‐CPSP‐CD model demonstrated excellent predictive performance. The core high‐risk factors for postoperative chronic incisional pain were SQ‐6 (history of dysmenorrhea), SH‐5 (patient‐controlled analgesia [PCA] pump pressing frequency), and SH‐6 (PCA opioid consumption). This study provides an important foundation for developing and optimizing perioperative pain management strategies.
Keywords: cesarean section, chronic pain, machine learning, pain management, postoperative pain, risk factors
In this prospective cohort study of 678 women undergoing cesarean delivery, we combined the Boruta algorithm, recursive feature elimination, and the Mantel test for feature selection and constructed a high‐performance machine learning–based prediction model. SHAP‐based analysis identified the leading risk factors for chronic postsurgical pain. This study provides an important foundation for developing and optimizing perioperative pain management strategies.

1. Introduction
Chronic postsurgical pain (CPSP) is a potential surgical complication that has been incorporated into the International Classification of Diseases, 11th Revision (ICD‐11) [1]. CPSP after cesarean delivery (CPSP‐CD) is a form of CPSP that severely affects maternal postpartum recovery, daily life, emotional well‐being, and parenting capacity; given the large volume of cesarean surgeries, CPSP‐CD constitutes a major public health issue [2, 3, 4].
The pathogenesis of CPSP‐CD is complex and involves multiple physiological and psychological factors that encompass multiple dimensions of risk across the preoperative, intraoperative, and postoperative periods [5, 6, 7]. Previous studies have identified several risk factors for the condition, such as age, emergency surgery, severity of acute postoperative pain, surgical duration, specific incision type (e.g., Pfannenstiel incision), and maternal psychological state (including anxiety, depression, and poor sleep quality) [5, 7, 8, 9]. However, some limitations persist in this field. First, most existing publications consist of narrative reviews or meta‐analyses, and high‐quality, prospective studies focused on the Chinese population are lacking [5, 7]. The reported incidence of CPSP‐CD varies considerably across studies, with values ranging from 4.0% to 41.8%, which may be attributed to differences in research methodology, anesthetic and analgesic strategies, follow‐up duration, and definition of CPSP‐CD [4, 7]. Notably, some studies include pain from nonsurgical sites (e.g., lower back, head, and pelvic pain) under the umbrella of CPSP‐CD, potentially leading to an overestimation of its incidence [4, 9]. This conflation of incisional and non‐incisional pain obscures the specific mechanisms that underlie different types of pain, limits the identification of key risk factors, and restricts the development of targeted prevention and intervention strategies. Second, although multiple factors, such as age, history of chronic pain, duration of surgery, and presence of acute postoperative pain [4, 10], influence CPSP‐CD, few studies have adequately employed multivariable modeling techniques, thereby limiting the reliability of their inferences and the generalizability of their conclusions. Furthermore, research on modifiable perioperative factors, including anesthetic techniques and pain management protocols, as well as psychological factors such as anxiety and depression, for CPSP‐CD remains insufficient [9, 11, 12]. Third, traditional statistical models, such as logistic regression (LR), are unable to fully capture complex nonlinear relationships and interactions among variables, which limits their accuracy and robustness and prevents meaningful rankings of factors that may influence CPSP‐CD by importance [13, 14, 15]. Although machine learning (ML) techniques have demonstrated strong potential in predicting postoperative complications and optimizing clinical management in other fields, their application in predicting CPSP‐CD remains relatively immature [10].
In the context of the deep integration of artificial intelligence technologies into the medical field, ML can offer novel solutions to overcome the limitations of traditional statistical methods [16, 17]. ML algorithms can efficiently process high‐dimensional, multimodal clinical data and automatically capture complex nonlinear relationships among variables, thereby enabling the construction of predictive models with excellent performance [18, 19, 20]. However, many such high‐performing ML models are often viewed as “black boxes” because of the obscurity of their decision‐making processes, which limits clinical understanding of and trust in their results [21, 22]. In recent years, advances in explainable artificial intelligence techniques, such as Shapley Additive exPlanations (SHAP) [23], have enabled clear interpretations of the contributions of each feature to the model predictions while preserving the high predictive performance of the model. Such advances have greatly facilitated the translation and application of ML models from research to clinical practice [24] and have validated the effectiveness of ML in clinical modeling while providing an important reference for its further application in improving patient outcomes [18, 19, 20, 21, 22, 23, 24, 25, 26].
Given this background, in this study, a prospective, observational cohort design was employed to develop and validate an interpretable ML prediction model for CPSP‐CD (MLPM‐CPSP‐CD); in this model, multiple feature selection strategies and ML algorithms were integrated with SHAP‐based interpretability analysis. The aim of this study was to develop a high‐performance, interpretable prediction model for the early identification of patients at high risk of CPSP‐CD, thereby providing an evidence‐based foundation for targeted interventions and individualized perioperative pain management.
2. Results
2.1. Patient Characteristics
A total of 678 patients were ultimately included in this study and were grouped according to the incidence of chronic incisional/non‐incisional pain after CD (Table 1). At the 3‐month postoperative follow‐up, chronic incisional pain was observed in 84 patients, with an incidence rate of 12.39%; moderate‐to‐severe pain was reported in 31 (36.8%) patients, including 29 (34.5%) with moderate pain and 2 (2.4%) with severe pain. By the 6‐month postoperative period, chronic incisional pain was present in 66 patients, with an incidence rate of 9.73%; moderate‐to‐severe pain was reported in 27 patients (40.9%), including 25 (37.9%) with moderate pain and 2 (3.0%) with severe pain. At the 12‐month postoperative follow‐up, chronic incisional pain was reported by 54 patients, with an incidence rate of 7.96%; moderate‐to‐severe pain was reported in 26 patients (48.1%), including 25 (46.3%) with moderate pain and 1 (1.9%) with severe pain. Additionally, at the 12‐month follow‐up, chronic non‐incisional pain was reported by 163 patients, with an incidence rate of 24.04%; among these patients, 39.30% (64) reported pain at two or more sites.
TABLE 1.
Patient characteristics of the total sample (n = 678) and of those with chronic postoperative pain after cesarean delivery.
| Chronic incisional pain after CD | Chronic non‐incisional pain after CD | |||||||
|---|---|---|---|---|---|---|---|---|
| 3 months | 6 months | 12 months | 12 months | |||||
| Yes (84) | No (594) | Yes (66) | No (612) | Yes (54) | No (624) | Yes (163) | No (515) | |
| Preoperative | ||||||||
| Mean age (SD), years | 31.12 (3.22) | 30.93 (3.53) | 31.32 (3.40) | 30.91 (3.50) | 31.19 (3.36) | 30.93 (3.50) | 30.87 (3.29) | 30.98 (3.55) |
| Elderly parturient women, no. (%) | 9 (10.71) | 98 (16.50) | 9 (13.64) | 98 (16.01) | 5 (9.26) | 102 (16.35) | 19 (11.66) | 88 (17.09) |
| Preoperative GAD‐7 score | 3.5 (2.88) | 2.63 (2.71) | 3.74 (2.92) | 2.63 (2.71) | 3.72 (3.06) | 2.65 (2.71) | 2.83 (2.72) | 2.70 (2.76) |
| Preoperative EPDS score | 8.01 (4.17) | 6.93 (3.85) | 8.18 (4.49) | 6.95 (3.82) | 7.81 (4.16) | 7.00 (3.88) | 7.31 (3.93) | 6.99 (3.89) |
| BMI, kg/m2 (SD) | 26.71 (3.50) | 26.97 (3.37) | 26.85 (3.77) | 26.95 (3.35) | 26.71 (3.59) | 26.96 (3.37) | 27.09 (3.35) | 26.89 (3.40) |
| History of dysmenorrhea, no. (%) | 45 (53.57) | 137 (23.06) | 36 (54.55) | 146 (23.86) | 29 (53.70) | 153 (24.52) | 74 (45.40) | 108 (20.97) |
| History of PIH, no. (%) | 4 (4.76) | 42 (7.07) | 3 (4.55) | 43 (7.03) | 3 (5.56) | 43 (6.89) | 10 (6.13) | 36 (6.99) |
| History of GDM, no. (%) | 13 (15.48) | 110 (18.52) | 13 (19.70) | 110 (17.97) | 11 (20.37) | 112 (17.95) | 30 (18.40) | 93 (18.06) |
| History of hyperthyroidism, no. (%) | 1 (1.19) | 10 (1.68) | 1 (1.54) | 10 (1.63) | 1 (1.85) | 10 (1.60) | 3 (1.84) | 8 (1.55) |
| History of hypothyroidism, no. (%) | 13 (15.48) | 74 (12.46) | 9 (13.64) | 78 (12.75) | 5 (9.26) | 82 (13.14) | 26 (15.95) | 61 (11.84) |
| History of vaginal delivery, no. (%) | 8 (9.52) | 31 (5.22) | 7 (10.61) | 32 (5.23) | 5 (9.26) | 34 (5.45) | 10 (6.13) | 29 (5.63) |
| History of CD, no. (%) | 14 (16.67) | 112 (18.86) | 12 (18.18) | 114 (18.63) | 9 (16.67) | 117 (18.75) | 28 (17.18) | 98 (19.03) |
| History of induced abortion, no. (%) | 31 (36.90) | 195 (32.83) | 25 (37.88) | 201 (32.84) | 21 (38.89) | 205 (32.85) | 56 (34.36) | 170 (33.01) |
| History of pain during pregnancy, no. (%) | 59 (70.24) | 312 (52.53) | 48 (72.73) | 323 (52.78) | 41 (75.95) | 330 (52.88) | 101 (61.96) | 270 (52.43) |
| Intraoperative | ||||||||
| Mean surgical duration, min (SD) | 52.57 (14.22) | 52.76 (15.32) | 53.39 (14.87) | 52.67 (15.22) | 52.98 (14.94) | 52.72 (15.21) | 53.17 (15.41) | 52.60 (15.12) |
| Surgeon‐1 | 39 (46.43) | 287 (48.32) | 31 (46.97) | 295 (48.20) | 27 (50.00) | 299 (47.92) | 80 (49.08) | 246 (47.77) |
| Surgeon‐2 | 25 (29.76) | 164 (27.61) | 21 (31.82) | 168 (27.45) | 15 (27.78) | 174 (27.88) | 41 (25.15) | 148 (28.74) |
| Surgeon‐3 | 20 (23.81) | 143 (24.07) | 14 (21.21) | 149 (24.35) | 12 (22.22) | 151 (24.20) | 42 (25.77) | 121 (23.50) |
| Use of intraspinal fentanyl, no. (%) | 40 (47.62) | 292 (49.16) | 31 (46.97) | 301 (49.18) | 25 (46.30) | 307 (49.20) | 74 (45.40) | 258 (50.10) |
| Use of dexamethasone, no. (%) | 44 (52.38) | 287 (48.32) | 36 (54.55) | 295 (48.20) | 31 (57.41) | 300 (48.08) | 79 (48.47) | 252 (48.93) |
| Use of oxycodone, no. (%) | 38 (45.24) | 236 (39.73) | 31 (46.97) | 243 (39.71) | 25 (46.30) | 249 (39.90) | 78 (47.85) | 196 (38.06) |
| Use of flurbiprofen axetil, no. (%) | 43 (51.20) | 351 (59.09) | 34 (51.52) | 360 (58.82) | 29 (53.70) | 365 (58.49) | 88 (53.99) | 306 (59.42) |
| Use of flurbiprofen axetil and dexamethasone | 33 (39.29) | 250 (42.09) | 29 (43.94) | 254 (41.50) | 25 (46.30) | 258 (41.35) | 65 (39.88) | 218 (42.33) |
| Postoperative | ||||||||
| PCA1, no. (%) | 40 (47.62) | 300 (50.50) | 34 (51.52) | 306 (50.00) | 24 (44.44) | 316 (50.64) | 84 (51.53) | 254 (49.32) |
| PCA2, no. (%) | 44 (52.38) | 294 (49.50) | 32 (48.48) | 306 (50.00) | 30 (55.56) | 308 (49.36) | 79 (48.47) | 261 (50.68) |
| Inadequate analgesia (resting), no. (%) | 1 (1.19) | 12 (2.02) | 0 (0.00) | 13 (2.12) | 0 (0.00) | 13 (2.08) | 4 (2.45) | 9 (1.75) |
| Inadequate analgesia (moving), no. (%) | 21 (25.00) | 133 (22.39) | 13 (19.70) | 141 (23.04) | 9 (16.67) | 145 (23.24) | 38 (23.31) | 116 (22.52) |
| Mean PCA pump pressing frequency, (SD) | 8.95 (9.20) | 5.93 (6.94) | 9.12 (9.30) | 6.00 (7.02) | 9.57 (9.27) | 6.02 (7.07) | 7.10 (7.74) | 6.05 (7.17) |
| PCA opioid consumption | 56.07 (19.63) | 51.66 (19.00) | 54.94 (17.99) | 51.91 (19.23) | 56.09 (16.54) | 51.87 (19.30) | 54.98 (20.29) | 51.33 (18.67) |
| Use of diclofenac sodium after the operation | 62 (73.81) | 338 (56.90) | 49 (74.24) | 351 (57.35) | 39 (72.22) | 361 (57.85) | 109 (66.87) | 291 (56.50) |
| Breast feeding‐1, no. (%) | 18 (21.43) | 155 (26.09) | 15 (22.73) | 158 (25.82) | 11 (20.37) | 162 (25.96) | 46 (28.22) | 127 (24.66) |
| Breast feeding‐2, no. (%) | 21 (25.00) | 155 (26.09) | 16 (24.24) | 160 (26.14) | 14 (25.93) | 162 (25.96) | 42 (25.77) | 134 (26.02) |
| Breast feeding‐3, no. (%) | 45 (53.57) | 284 (47.81) | 35 (53.03) | 294 (48.04) | 29 (53.70) | 300 (48.08) | 75 (46.01) | 254 (49.32) |
| Postoperative GAD‐7 score | 2.02 (2.45) | 1.58 (2.27) | 2.08 (2.62) | 1.59 (2.25) | 1.98 (2.66) | 2.65 (2.71) | 1.87 (2.40) | 1.56 (2.26) |
| Postoperative EPDS score | 4.81 (3.57) | 4.41 (3.52) | 4.89 (3.84) | 4.42 (3.49) | 4.80 (3.91) | 4.44 (3.49) | 4.55 (3.45) | 4.44 (3.55) |
| 12‐month postoperative GAD‐7 score | 4.65 (3.66) | 2.66 (2.74) | 4.27 (3.97) | 2.76 (2.77) | 4.30 (4.28) | 1.60 (2.26) | 4.52 (4.05) | 2.39 (2.26) |
| 12‐month postoperative EPDS score | 7.10 (3.60) | 5.77 (3.02) | 7.05 (3.71) | 5.82 (3.03) | 7.07 (4.04) | 5.84 (3.01) | 6.67 (3.97) | 5.70 (2.77) |
Note: Breastfeeding groups—Breast feeding‐1, exclusive formula feeding; Breast feeding‐2, breastfeeding for ≤ 6 months; Breast feeding‐3, breastfeeding for > 6 months.
Abbreviations: ASA, American Society of Anesthesiologists; BMI, body mass index; EPDS, Edinburgh Postnatal Depression Scale; GAD‐7, Generalized Anxiety Disorder‐7; GDM, gestational diabetes mellitus; PCA‐1, hydromorphone‐based patient‐controlled analgesia (PCA); PCA‐2, nalbuphine‐based patient‐controlled analgesia (PCA); PCS, Pain Catastrophizing Scale; PIH, pregnancy‐induced hypertension syndrome.
The study population exhibited a pain category imbalance; specifically, the incidence of incision‐site chronic pain was approximately 8%, whereas that of non‐incision chronic pain was approximately 24%. We did not employ category imbalance correction techniques such as SMOTE, category weighting, or resampling in the main analysis but instead retained the original category distribution for the following reasons: (1) Recent evidence suggests that imbalanced correction methods may limit model calibration and do not consistently improve the discriminative ability in clinical prediction tasks [27]; (2) our robustness analysis showed that the model performed well and stably on the raw data, considering the trade‐offs in each fold of the cross‐validation analysis.
2.2. Results of Important Feature Selection
A total of 38 preoperative, intraoperative, and postoperative variables were included in this study. To identify the most important features for the predictive model, the variables were initially screened with the Boruta algorithm on the basis of the random forest (RF). To further ensure that no key variables were overlooked, the RFE method, which is also based on RF, was used for validation. The aim of feature selection was to reduce model complexity while enhancing its reliability and stability.
Using the occurrence of chronic incisional pain after CD as the dependent variable, the Boruta algorithm preliminarily screened and identified four important features: SH‐12, SH‐5, SQ‐6, and SH‐11. After 50 iterations, the importance score of SH‐12 remained stable (Figure 1A). The remaining 34 variables were deemed unimportant, indicating a weak association with the target variable. Notably, although SH‐6 was classified as an unimportant feature, its importance ranking was higher than that of SH‐11, an important feature.
FIGURE 1.

Results of the random forest (RF)–based Boruta algorithm, RFE, and Mantel test. (A and B) Important features selected by the RF‐based Boruta algorithm, using the occurrence of (A) chronic incisional pain and (B) chronic non‐incisional pain as the dependent variables. (C) Correlation analysis between chronic incisional/non‐incisional pain and candidate features according to the Mantel test. (D) Mantel test analysis of the correlation between important features and the occurrence of chronic incisional pain at 3, 6, and 12 months postoperatively. (E–I) Important features selected by the Boruta algorithm under different dependent variables: (E) overall occurrence of chronic incisional pain, (F) occurrence of chronic incisional pain at 3 months after CD, (G) occurrence of chronic incisional pain at 6 months after CD, (H) occurrence of chronic incisional pain at 12 months after CD, and (I) occurrence of chronic non‐incisional pain at 12 months after CD.
Using the occurrence of chronic non‐incisional pain after CD as the dependent variable, the Boruta algorithm screened and identified three important features: SH‐12, SQ‐6, and SH‐11, whose importance remained stable across 50 iterations (Figure 1B). SH‐6 was marked as a “tentative” feature, and its retention could be decided on the basis of the actual research needs. The remaining 34 variables were all unimportant.
To validate the above results, a Mantel test was conducted (Figure 1C). The results revealed that the factors most strongly correlated with chronic incisional pain after CD were, in order, SH‐12, SH‐11, SQ‐6, and SH‐5; the factors most strongly correlated with chronic non‐incisional pain after CD were SH‐12, SH‐11, and SQ‐6. These results were highly consistent with those obtained with the Boruta algorithm. Consequently, the Mantel test was subsequently used in this study for screening important features associated with the incidence of incisional pain at 3, 6, and 12 months postoperatively, while the final determination was made in combination with the results of the RF‐based RFE. The results of the Mantel test, in which the occurrence of chronic incisional pain at 3, 6, and 12 months after CD was used as the dependent variable, are shown in Figure 1D. At each time point, the most strongly correlated factors were SH‐12, SH‐11, SQ‐6, and SH‐5.
To further ensure that no key variables were omitted, the RFE method was used to identify features that would allow the model to truly and comprehensively predict chronic incisional pain versus chronic non‐incisional pain. When a fluctuation of less than 3% in the mean AUC was used as the convergence criterion, the results revealed the following: For the overall occurrence of chronic incisional pain after CD as the dependent variable, the most important influencing factors included SH‐6, SH‐5, SH‐12, SH‐7, SQ‐6, SQ‐15, SH‐8, SH‐11, SQ‐4, SZ‐5, and SZ‐2 (Figure 1E). For the occurrence of chronic incisional pain at 3 months after CD as the dependent variable, the most important influencing factors included SH‐6, SH‐5, SQ‐15, SZ‐2, SH‐7, SQ‐6, SQ‐1, SZ‐5, SQ‐2, SQ‐4, and SH‐8 (Figure 1F). For the occurrence of chronic incisional pain at 6 months after CD as the dependent variable, the most important influencing factors were SH‐6, SH‐5, SZ‐2, SH‐7, SZ‐5, SQ‐15, SQ‐4, SQ‐2, SQ‐6, SH‐8, and SQ‐1 (Figure 1G). For the occurrence of chronic incisional pain at 12 months after CD as the dependent variable, the most important influencing factors included SH‐6, SH‐5, SH‐11, SQ‐4, SH‐7, SZ‐2, SQ‐5, SH‐8, SQ‐15, SZ‐5, and SQ‐6 (Figure 1H). For the occurrence of chronic non‐incisional pain at 12 months after CD as the dependent variable, the most important influencing factors were SH‐6, SH‐5, SH‐12, SH‐7, SQ‐15, SH‐8, SZ‐2, SH‐11, SZ‐5, SQ‐1, and SQ‐6 (Figure 1I).
2.3. Analysis of High‐Risk Factors for Chronic Incisional Pain After CD
On the basis of the above results of the feature selection process, in this study, outcomes were systematically computed using the established predictive model (the MLPM‐CPSP‐CD model). The modeling and analysis results of the factors influencing chronic incisional pain are shown in Figure 2.
FIGURE 2.

Analysis of factors influencing postoperative incisional pain. (A and B) Receiver operating characteristic (ROC) curves and the area under the curve (AUC) for six machine learning (ML) models—logistic regression (LR), RF, multilayer perceptron (MLP), support vector machine (SVM), extreme gradient boosting (XGBoost), and gradient boosting machine (GBM)—using the occurrence of chronic incisional pain after CD as the dependent variable in the (A) training set and (B) test set, respectively. (C) Precision‒recall curve and average precision (AP) of the RF model evaluated on the test set, with the occurrence of chronic incisional pain after CD as the dependent variable. (D) SHAP beeswarm plot and feature importance ranking bar chart output by the RF model, with the occurrence of chronic incisional pain as the dependent variable. The beeswarm plot displays the distribution of each feature's contribution (SHAP values) to the model output, while the bar chart ranks the features in descending order of importance. (E and F) SHAP waterfall plots for the second sample (a patient with chronic incisional pain) in the (E) training set and (F) test set, visually illustrating the direction and magnitude of each feature's contribution to the prediction outcome for this sample. (G and H) SHAP heatmaps for the top 200 samples in the (G) training set and (H) test set. The colors indicate the direction and magnitude of the feature contributions to the predictions, and the curve at the top represents the trend in the model output. (I) SHAP dependence plots for key features (SH‐6, SH‐5, SH‐12, SZ‐2, SH‐7, SQ‐15, SH‐8, and SH‐11), showing the relationship between feature values and SHAP values and thus the impact of different feature values on the prediction outcomes.
The areas under the ROC curve (AUCs) and the corresponding ROC curves for six ML models evaluated on the training and test sets are shown in Figure 2A, B, respectively, with the occurrence of chronic postoperative incisional pain as the dependent variable. On the training set, the AUC values for the LR, RF, multilayer perceptron (MLP), support vector machine (SVM), extreme gradient boosting (XGBoost), and gradient boosting machine (GBM) models were 0.784 [0.713–0.850], 0.973 [0.959–0.986], 0.833 [0.773–0.887], 0.832 [0.774–0.890], 0.836 [0.776–0.889], and 0.905 [0.871–0.932], respectively. In the test set, the AUC values for these models were 0.792 [0.737–0.844], 0.956 [0.938–0.972], 0.825 [0.778–0.871], 0.795 [0.743–0.849], 0.825 [0.776–0.870], and 0.880 [0.847–0.910], respectively. On the basis of the AUC values and the corresponding ROC curves, the RF model demonstrated optimal predictive performance.
The precision–recall (PR) curve and the average precision (AP) value of the RF model on the test set, with the occurrence of chronic incisional pain after CD as the dependent variable, are shown in Figure 2C. The AP value was 0.85, which, combined with the shape of the curve, indicates that the model has a good ability to identify samples with a low positive proportion.
The SHAP swarm plot and feature importance ranking output by the RF model, with the occurrence of chronic incisional pain after CD as the dependent variable, are shown in Figure 2D. The horizontal axis represents the SHAP value, reflecting the direction and magnitude of the contribution of each feature to the model output: Positive values indicate a positive influence (greater pain risk), whereas negative values indicate a negative influence. The results show that the SHAP values of SH‐12, SQ‐6, SH‐5, and SH‐11 were widely distributed, indicating their significant impact on the prediction outcome. These features were predominantly concentrated on the positive side of the axis, suggesting that higher values significantly increase both the risk of postoperative incisional pain and the predictive output of the model. Specifically, the Generalized Anxiety Disorder‐7 (GAD‐7) score at 12 months postoperatively (SH‐12) was identified as the most important predictor, with higher anxiety levels associated with a greater risk of postoperative incisional pain. Additionally, a history of dysmenorrhea (SQ‐6), the postoperative patient‐controlled analgesia (PCA) pump pressing frequency (SH‐5), and Edinburgh Postnatal Depression Scale (EPDS) at 12 months postoperatively (SH‐11) were also identified as risk factors.
To visually illustrate the direction and magnitude of the contribution of each feature to the prediction outcome for a specific sample, the SHAP waterfall plots for the second sample in the training and test sets are shown in Figure 2E, F, respectively. Red indicates a positive contribution, while blue indicates a negative contribution. In the training set sample, only SH‐5 positively contributed to the prediction outcome, whereas all the other features negatively influenced the prediction outcome. In the test set sample, SH‐12 and SH‐5 demonstrated significant negative contributions to the outcome.
To evaluate the consistency in the feature contributions, the heatmaps for the top 200 samples in the training and test sets are depicted in Figure 2G, H, respectively. The heatmaps show that for most samples, the colors for SH‐12, SQ‐6, SH‐5, and SH‐11 are red or blue, representing positive and negative contributions, respectively, to the model output and indicating high consistency in their impact on the model output. The contributions of the other features were less significant. The f(x) curve at the top of the figure shows the trend in the sample prediction values, indicating that intervals with higher prediction values tend to correspond to multiple features that simultaneously exhibit positive contributions.
The dependence of the SHAP values on sample variation for variables such as SH‐6, SH‐5, SH‐12, SZ‐2, SH‐7, SQ‐15, SH‐8, and SH‐11 is shown in Figure 2I. Taking SH‐6 (PCA opioid consumption) as an example, when the PCA opioid consumption amount gradually increased in the range of 0–46 mL, the SHAP values were negative and tended to first decrease but then increase; when the amount exceeded 46, the SHAP values increased first but then decreased. For SH‐12 (GAD‐7 score at 12 months postoperatively), the SHAP values were negative for Grade 1 anxiety but positive for Grades 2–4 anxiety, indicating that higher anxiety levels are associated with a greater risk of chronic incisional pain after CD. Similarly, for SH‐11 (EPDS at 12 months postoperatively), the SHAP values were negative for Grade 1 depression but positive for Grades 2–3 depression, suggesting that moderate to severe depression significantly increased the risk of chronic incisional pain.
2.4. Computational Results of the Factors Influencing Incisional Pain at Different Postoperative Time Points
To investigate the dynamic changes in the incidence of chronic incisional pain after CD, in this study, data on the occurrence of incisional pain were systematically collected at four time points: 1, 3, 6, and 12 months after surgery. Comparisons of the incidence of incisional pain at these time points are shown in Figure 3A; the highest incidence was observed at 1 month postoperatively (12.7%), after which the incidence gradually decreased to 12.39% at 3 months, 9.73% at 6 months, and 7.96% at 12 months. These results indicate a declining trend in incisional pain incidence after CD over time.
FIGURE 3.

Analysis of factors influencing incisional pain at different postoperative time points. (A) Incidence of incisional pain at 1, 3, 6, and 12 months postoperatively. (B) ROC curves and AUCs for the six ML models evaluated on the test set, with the occurrence of chronic incisional pain at 3 months after CD as the dependent variable. (C) SHAP beeswarm plots and feature importance ranking bar charts output by the best‐performing model for chronic incisional pain at 3 months after CD. (D) SHAP waterfall plots for the second sample (a patient with chronic incisional pain) in the test set according to models for chronic incisional pain at 3 months after CD. (E) SHAP heatmaps for the top 200 samples in the test set according to models for chronic incisional pain at 3 months after CD. (F) ROC curves and AUCs for the six ML models evaluated on the test set, with the occurrence of chronic incisional pain at 6 months after CD as the dependent variable. (G) SHAP beeswarm plots and feature importance ranking bar charts output by the best‐performing model for chronic incisional pain at 6 months after CD. (H) SHAP waterfall plots for the second sample (a patient with chronic incisional pain) in the test set according to models for chronic incisional pain at 6 months after CD. (I) SHAP heatmaps for the top 200 samples in the test set according to models for chronic incisional pain at 6 months after CD. (J) ROC curves and AUCs for the six ML models evaluated on the test set, with the occurrence of chronic incisional pain at 12 months after CD as the dependent variable. (K) SHAP beeswarm plots and feature importance ranking bar charts output by the best‐performing model for chronic incisional pain at 12 months after CD. (L) SHAP waterfall plots for the second sample (a patient with chronic incisional pain) in the test set according to models for chronic incisional pain at 12 months after CD. (M) SHAP heatmaps for the top 200 samples in the test set according to models for chronic incisional pain at 12 months after CD.
The ROC curves and AUC values of the six ML models evaluated on the test set, with the occurrence of chronic incisional pain at 3 months postoperatively as the dependent variable, are shown in Figure 3B. The RF model achieved the highest AUC value (0.976 [0.962–0.987]), indicating its optimal predictive performance at this time point. The SHAP beeswarm plot and feature importance ranking output by the RF model at this time point are shown in Figure 3C: Features SQ‐6, SH‐5, SH‐7, SQ‐4, and SH‐6 exhibited widely distributed SHAP values, reflecting their significant impact on the model predictions. The data points for SQ‐6 and SH‐5 were predominantly located on the positive side of the SHAP value axis (primarily red dots), suggesting that higher values of these features increase the risk of incisional pain. Specifically, a history of dysmenorrhea (SQ‐6), PCA pump pressing frequency (SH‐5), and PCA opioid consumption (SH‐6) were identified as risk factors. The SHAP waterfall plot for the second sample in the test set is shown in Figure 3D, showing that PCA pump pressing frequency (SQ‐6) contributed most positively to the prediction value for this sample. The SHAP heatmap for the top 450 samples in the test set is shown in Figure 3E. For most samples, a history of dysmenorrhea (SQ‐6) and the PCA pump pressing frequency (SH‐5) significantly contributed (evident as red or blue blocks), with consistent directional effects. The f(x) curve at the top indicates strong correlations with the feature contributions, further validating the positive contributory effects of these features on the prediction outcomes.
The performance of the six models on the test set, with the occurrence of incisional pain at 6 months postoperatively as the dependent variable, is depicted in Figure 3F. The RF model achieved an AUC of 1.000 [1.000–1.000] and thus demonstrated the best performance. The SHAP beeswarm plot for the RF model at this time point is shown in Figure 3G. A history of dysmenorrhea (SQ‐6), PCA pump pressing frequency (SH‐5), PCA opioid consumption (SH‐6), patient satisfaction (SH‐7), and preoperative degree of depression (SQ‐2) were the most influential features, with higher values associated with increased pain risk. The waterfall plot for the second sample in the test set, as shown in Figure 3H, shows that a history of dysmenorrhea (SQ‐6) and the PCA pump pressing frequency (SH‐5) contributed most to increasing the prediction value. The heatmap results, as shown in Figure 3I, again confirmed the consistency and significance of the contributions from a history of dysmenorrhea (SQ‐6) and the PCA pump pressing frequency (SH‐5) across the samples.
The performance of the six models for chronic non‐incisional pain at 12 months after cesarean delivery is shown in Figure 3J. The RF model achieved an AUC of 0.991 (95% CI: 0.984–0.997), while the SVM model reached an AUC of 1.000 (95% CI: 1.000–1.000). To maintain consistent model selection across the 3‐, 6‐, and 12‐month analytical time points and prevent result bias caused by inconsistencies in the model frameworks, we uniformly adopted the RF model for all pain time points after a comprehensive evaluation of the discrimination metrics, including the ROC‐AUC. The SHAP beeswarm plot for the SVM model is shown in Figure 3K. A history of dysmenorrhea (SQ‐6), the PCA pump pressing frequency (SH‐5), and the EPDS score at 12 months postoperatively (SH‐11) were identified as important features, with higher values indicating an increased risk of incisional pain. A history of dysmenorrhea (SQ‐6) was identified as the most important predictor of incisional pain at 12 months postoperatively; the PCA pump pressing frequency (SH‐5) and EPDS score at 12 months after CD (SH‐11) also showed significant contributory effects. The waterfall plot for the second sample in the test set, as shown in Figure 3L, shows that SQ‐6, SH‐5, and SQ‐4 contributed most to increasing the prediction value. The heatmap results, as shown in Figure 3M, indicate that the contributions of SQ‐6, SH‐5, and SH‐11 were significant and consistent across multiple samples.
2.5. Computational Results of Factors Influencing Chronic Non‐Incisional Pain After CD
In this study, the occurrence of chronic non‐incisional pain at 12 months after CD was also evaluated. The modeling and evaluation results for the occurrence of chronic non‐incisional pain at 12 months are presented in Figure 4.
FIGURE 4.

Computational results of factors influencing chronic non‐incisional pain after CD. (A) ROC curves and AUCs for the six ML models evaluated on the test set, with the occurrence of chronic non‐incisional pain after CD as the dependent variable. (B) Precision‒recall curve and AP of the RF model evaluated on the test set, with the occurrence of chronic non‐incisional pain after CD as the dependent variable. (C) Calibration curve of the RF model evaluated on the test set, with the occurrence of chronic non‐incisional pain after CD as the dependent variable; the curve demonstrates the consistency between the predicted probabilities and the actual outcomes. (D) SHAP beeswarm plot and feature importance ranking bar chart output by the RF model, with the occurrence of chronic non‐incisional pain as the dependent variable; the data demonstrate the distribution and direction of each feature's contribution to the model output. (E and F) SHAP waterfall plots for the second sample (a patient with chronic non‐incisional pain) in the (E) training set and (F) test set, respectively, illustrating the detailed contribution of each feature to the prediction value under training and testing conditions. (G and H) SHAP heatmaps for the top 200 samples in the (G) training set and (H) test set. The colors indicate the direction and magnitude of the feature contributions, and the curve at the top represents the trend in the model output. (I) SHAP force‐directed plot for the second sample in the test set, visually depicting the directions of influence and contribution strengths of the features on the prediction outcome for this sample.
The ROC curves and corresponding AUC values of the six ML models evaluated on the test set, with the occurrence of chronic non‐incisional pain at 12 months after CD as the dependent variable, are shown in Figure 4A. The RF model achieved the highest AUC value (0.956 [0.938–0.972]), indicating its optimal predictive performance. The PR curve and the AP value of the RF model on the test set, with the occurrence of chronic non‐incisional pain as the dependent variable, are shown in Figure 4B. The AP value was 0.87, which, combined with the shape of the curve, indicates that the model has a strong ability to identify samples with a low positive proportion. The calibration curve of the RF model under the same dependent variable is shown in Figure 4C. The RF model exhibited the smallest calibration error (0.086 [0.073–0.098]), and its curve was closest to the ideal calibration line, indicating excellent reliability in probability prediction. The SHAP beeswarm plot and feature importance ranking output by the RF model are shown in Figure 4D. The SHAP values of the GAD‐7 score at 12 months postoperatively (SH‐12), a history of dysmenorrhea (SQ‐6), and the EPDS score at 12 months postoperatively (SH‐11) were widely distributed, indicating their significant impact on the prediction outcome. The values for these features were predominantly located on the positive side of the SHAP value axis (primarily red dots), suggesting that higher values increase the risk of non‐incisional pain. Specifically, the GAD‐7 score at 12 months postoperatively (SH‐12) was identified as the most important factor, while a history of dysmenorrhea (SQ‐6) and the EPDS score at 12 months postoperatively (SH‐11) were also important risk factors. The SHAP waterfall plots for the second sample in the training set and test set are shown in Figure 4E, F, respectively. In the training set, SH‐12, SH‐5, and SQ‐6 contributed significantly negatively to the prediction value, whereas in the test set, SH‐5 contributed most positively to the prediction value. The SHAP heatmaps for the top 200 samples in the training set and test set are shown in Figure 4G, H, respectively. In the training set, SH‐12, SQ‐6, SH‐11, and SH‐6 significantly contributed (evident as red or blue blocks) to most samples, with consistent directional effects. In the test set, SH‐12, SQ‐6, SH‐5, and SH‐11 exhibited similar feature contribution patterns, whereas the influences of the other features were less significant. The SHAP force plot for the second sample in the test set intuitively illustrates that the GAD‐7 score at 12 months postoperatively (SH‐12), a history of dysmenorrhea (SQ‐6), and the EPDS score at 12 months postoperatively (SH‐11) had the most prominent effects on the prediction outcome for this sample (Figure 4I).
3. Discussion
3.1. Development and Validation of the MLPM‐CPSP‐CD Model
To improve the stability and reliability of the predictive model, the authors introduced a feature selection module based on the previously published MLPIAAR model [28]. Initially, the RF‐based Boruta algorithm was used for preliminary feature screening to identify important variables and provide an initial ranking, followed by the Mantel test to validate their importance. Furthermore, RF‐based RFE was applied, with a convergence criterion of less than 3% fluctuation in the mean AUC value, ultimately screening out 11 core feature variables. This process significantly improved the interpretability and generalizability of the model while retaining high‐contribution features [29, 30].
On the basis of the selected features, six mainstream ML algorithms were used to construct models in Python 3.8: LR, RF, MLP, SVM, XGBoost, and GBM. Data processing was standardized using StandardScaler to eliminate scale differences, improve model performance, and prevent gradient anomalies [31, 32]. Model training included fivefold cross‐validation to ensure generalizability, while a grid search was used to optimize the hyperparameters and determine the optimal parameter combination, further improving computational precision. The MLPM‐CPSP‐CD model, which was developed for predicting CPSP‐CD, exhibited superior discriminatory performance, with both AUC and AP values exceeding 0.85. These results suggest that the model possesses not only excellent predictive accuracy but also good discriminability in identifying minority class cases [33, 34].
3.2. Incidence of CPSP‐CD
Unlike most previous systematic reviews or meta‐analyses, in this prospective cohort study involving patients with CPSP‐CD, chronic incisional pain was specifically distinguished from chronic non‐incisional pain, thereby providing a more precise understanding of the epidemiological characteristics and clinical outcomes of the respective patients. Among the 678 patients who were followed up for 12 months, the incidence of chronic incisional pain decreased progressively over time: 12.39% at 3 months, 9.73% at 6 months, and 7.96% at 12 months postoperatively. This declining trend aligns with the findings of multiple meta‐analyses, such as the reported rates of 15.2%, 9.5%, and 5.0% at 3, 6, and 12 months, respectively, by Wang et al. (2025) [4] and 16.7%, 11.4%, and 8.8%, respectively, by Ciechanowicz et al. [2]. The 12‐month incidence in our study (7.96%) closely matches that obtained by Ciechanowicz et al., while the lower 3‐month incidence may reflect differences in population characteristics, cultural factors, healthcare systems, or socioeconomic contexts [7, 35]. Notably, the incidence of chronic incisional pain after cesarean delivery is substantially lower than that following thoracic, cardiac, or breast surgeries [36, 37, 38, 39, 40]. This may be attributed to the widespread use of neuraxial anesthesia during a cesarean delivery, which potentially mitigates the development of chronic pain through mechanisms such as reduced central sensitization [4, 35, 40]. Another hypothesized protective factor is the endogenous release of oxytocin during childbirth and lactation [4, 41]. Nevertheless, given that the annual global cesarean delivery rate exceeds 4 million and continues to increase, CPSP‐CD remains a significant public health issue affecting otherwise healthy young women [4, 9]. Among our patients with CPSP‐CD, the percentage of patients who experienced moderate‐to‐severe pain increased over time, from 36.8% at 3 months to 40.9% at 6 months and 48.1% at 12 months. This trend contrasts with a classic 2016 study that reported percentages of 31.0%, 13.8%, and 20.9%, possibly due to racial, social, or environmental disparities [42]. These data suggest that while chronic incisional pain resolves naturally for most patients, a subset of patients develop persistent, severe pain, potentially indicating a transition from nociceptive to neuropathic pain mechanisms, often compounded by psychological comorbidities [43, 44].
Additionally, at the 12‐month follow‐up, the incidence of chronic non‐incisional pain was 24.04%, which was significantly greater than that of incisional pain. Moreover, 39.30% (64 patients) reported pain at two or more sites. Taken together, these findings underscore the need for future research and clinical practice to extend beyond surgical sites and adopt a holistic approach to assess patients’ overall physical and psychological well‐being and provide necessary interventions, ultimately improving their long‐term quality of life.
3.3. High‐Risk Factors for Chronic Incisional Pain After CD
On the basis of the MLPM‐CPSP‐CD model, high‐risk, predictive factors for chronic incisional pain were prospectively analyzed at 3, 6, and 12 months after CD. All the models demonstrated excellent discriminatory performance, with AUC values exceeding 0.95, indicating highly reliable identification of high‐risk patients over time.
To clarify the greatest predictive performance at specific time points, a hierarchical longitudinal modeling strategy with four independent rounds of model training and validation was adopted in this study, including overall baseline modeling and specific predictions for 3‐, 6‐, and 12‐month postoperative chronic pain. All the models were pretrained on unified perioperative baseline data and externally validated on independent follow‐up datasets collected at different postoperative times. The ideal AUC value of 1.000 observed at the 6‐month time point is empirical evidence of superior discriminative ability of the model for this specific cohort rather than numerical overfitting. Although an AUC of 1.0 indicates a saturated fit in mathematics, consistently excellent performance across the cross‐validation subsets and the 3‐ and 12‐month test datasets and the stable AP values verify the reliability and acceptability of these results.
In this study, the following key predictors were identified:
At 3 months postoperatively, the five most influential predictors, in descending order, were SQ‐6 (history of dysmenorrhea), SH‐5 (postoperative PCA pump pressing frequency), SH‐7 (patient satisfaction with PCA), SQ‐4 (preoperative body mass index [BMI]), and SH‐6 (PCA opioid consumption).
At 6 months postoperatively, the primary predictive factors and their order of importance shifted to SQ‐6 (history of dysmenorrhea), SH‐5 (postoperative PCA pump pressing frequency), SH‐6 (PCA opioid consumption), SH‐7 (patient satisfaction with PCA), and SQ‐2 (preoperative EPDS).
At 12 months postoperatively, the top predictors again included SQ‐6 (history of dysmenorrhea) and SH‐5 (postoperative PCA pump pressing frequency), followed by SH‐11 (EPDS at 12 months postoperatively), SH‐7 (patient satisfaction with PCA), and SH‐6 (PCA opioid consumption).
In summary, at 3 months, chronic incisional pain was closely associated with a history of dysmenorrhea, PCA behaviors (pump pressing frequency and opioid consumption), patient satisfaction, and preoperative BMI. At 6 months, chronic incisional pain was still influenced by these factors but was also strongly associated with the preoperative EPDS scores. At the 12‐month follow‐up, chronic incisional pain demonstrated a stronger association with the postoperative EPDS score.
These findings align with those of previous studies, reaffirming that early postoperative pain intensity is a core predictor of CPSP [35, 45, 46]. PCA pump pressing frequency and opioid consumption serve as indirect pain assessment metrics: Pressing frequency reflects subjective analgesic demand, whereas opioid consumption is associated with the actual need for pain relief [47, 48]. The results of this study further confirm the significant predictive value of these metrics for chronic incisional pain at 3, 6, and 12 months after CD, validating early postoperative pain intensity as a critical risk factor. Notably, while inadequate postoperative analgesia reflects poor acute pain control, our results suggest that it is not a primary predictor of chronic incisional pain, possibly because it represents a transient subjective evaluation that cannot capture pain fluctuations or overall intensity over time during the acute phase [49, 50].
Furthermore, in this study, patient satisfaction (SH‐7), a subjective evaluation metric, was incorporated into the predictive model. Satisfaction is not solely determined by absolute pain levels (e.g., the VAS/Numeric Rating Scale [NRS] score) but also by the alignment between analgesic efficacy and the patient's psychological expectations [50, 51]. The design of PCA gives patients a “sense of control” over their pain management; for patients with high levels of satisfaction, this “sense of control” improves self‐efficacy, and the resulting positive psychological state may increase activation of descending pain inhibitory pathways, thereby exerting an intrinsic “analgesic” effect and reducing the risk of pain chronicification. Conversely, low satisfaction implies a lack of control, which may exacerbate feelings of helplessness and negative pain‐related psychological experiences [50, 51]. Preoperative education on PCA use (e.g., the pump operation method and the expected analgesic effects) and regular postoperative follow‐up to rapidly address patients’ concerns can effectively improve their satisfaction with PCA. Optimizing the PCA use experience and improving patients’ subjective satisfaction may reduce the potential risk of pain chronicification to some extent by regulating their psychological state in pain management and improving the control of acute pain [51].
In summary, the findings of this study suggest that when postoperative pain management strategies after cesarean delivery are being developed, it is essential to actively adopt multimodal analgesia regimens, including techniques such as regional nerve blocks (e.g., transversus abdominis plane block) and the use of nonsteroidal anti‐inflammatory drugs (NSAIDs), as well as measures such as preoperative education, to improve the intensity of early postoperative pain and reduce the incidence of chronic incisional pain after CD.
Preoperative BMI was identified as a risk factor for chronic incisional pain at 3 months after CD. Previous studies have reported that a high BMI is associated with chronic pain after breast cancer surgery [52, 53, 54]. The mechanisms of action may be related to the association of obesity with increased surgical difficulty and mechanical stress. Another possibility is that obesity, through low‐grade inflammation and the release of proinflammatory and insulin resistance–inducing substances from visceral adipose tissue, induces a state of central sensitization [53, 54]. However, other studies have shown that BMI is not strongly associated with chronic postoperative pain. Therefore, further research is needed to clarify the relationship between BMI and CPSP‐CD.
The predictive role of preoperative depression for chronic incisional pain at 6 months after CD and the negative impact of anxiety and depression at 12 months postpartum on chronic pain are consistent with the findings of previous studies [35, 37, 55]. The results of this study further revealed the association between such psychological factors and CPSP. Preoperative depression is a known risk factor for CPSP, potentially leading to its development by affecting the function of the descending pain modulatory system [55, 56]. Additionally, preoperative depression might act as a “predisposing factor,” while depression at 12 months may also be considered a “secondary complication” resulting from the presence of persistent pain; both mutually reinforce this pain, forming a vicious cycle. These findings support the role of the biopsychosocial medical model in CPSP. Preoperative education and postoperative social support may alleviate depressive symptoms, thereby reducing the occurrence of CPSP [35, 55].
In this study, a history of dysmenorrhea was identified as a consistent predictor of chronic incisional pain at 3, 6, and 12 months after cesarean delivery, a factor that has not been sufficiently emphasized in previous research. Dysmenorrhea reflects a preexisting state of pain sensitization that involves abnormalities in central nervous system regulation (such as inhibition of descending inhibitory pathways and glial cell activation). This preexisting “pain label” makes patients more reactive to nociceptive stimuli following the new surgical trauma of cesarean delivery, facilitating the amplification and chronification of pain signals [5, 35, 56]. These results suggest that a history of dysmenorrhea could provide a stable and powerful predictor of chronic pain after cesarean delivery over time, potentially offering a new, easily accessible, and important indicator for preoperative risk assessment.
3.4. High‐Risk Factors for Chronic Non‐Incisional Pain After CD
On the basis of the results of the predictive analysis, the MLPM‐CPSP‐CD model demonstrated excellent performance in predicting chronic non‐incisional pain after CD, with an AUC of 0.956, indicating excellent discriminatory ability. The top three predictors, in descending order of importance, were SH‐12 (the GAD‐7 score at 12 months postoperatively), SH‐11 (the EPDS score at 12 months postoperatively), and SQ‐6 (a history of dysmenorrhea). Notably, the key predictive factors for chronic incisional pain and chronic non‐incisional pain at 12 months postoperatively significantly differed. The contribution of depressive and anxious psychological states to the prediction of non‐incisional pain was particularly notable, far exceeding their contribution to the prediction of chronic incisional pain.
Chronic non‐incisional pain and incisional pain differ fundamentally in their risk profiles. The occurrence of incisional pain is more closely associated with preoperative factors (e.g., a history of dysmenorrhea) and acute postoperative pain intensity, whereas non‐incisional pain is more closely associated with the patient's anxiety and depressive states at 12‐months post‐cesarean delivery and with preexisting systemic pain sensitization (represented by a history of dysmenorrhea, which reflects a chronic pain state). Specifically, higher degrees of depression (SH‐11) and anxiety (SH‐12) were associated with an increased risk of non‐incisional pain. The underlying neurobiological mechanisms may involve the potential roles of anxiety and depression in activating the amygdala, increasing spinal cord sensitivity to pain signals, and in impairing descending inhibitory control of the prefrontal cortex over pain perception. These states are often accompanied by the release of stress hormones (e.g., cortisol), collectively amplifying pain perception [5, 35, 55]. A suite of comprehensive intervention measures, including preoperative consultation, the administration of brief bouts of cognitive behavioral therapy, and the strengthening of social support (e.g., connecting high‐risk patients with peer support groups to alleviate loneliness), may reduce the risk of developing CPSP. Additionally, a history of dysmenorrhea (SQ‐6), which serves as a marker of preexisting central sensitization, was identified as a significant risk factor for chronic non‐incisional pain.
This distinction has important implications for clinical practice. Unlike the prevention of chronic incisional pain, which focuses on acute phase management, strategies for preventing and treating chronic non‐incisional pain after cesarean delivery should pivot toward comprehensive assessments and interventions that address the patient's systemic pain sensitivity and psychological state.
To avoid overinterpretation, we distinguished between two types of variables: (1) True early predictive factors, for example, preoperative (e.g., history of dysmenorrhea, preoperative EPDS, and BMI) and early postoperative (e.g., PCA pump pressing frequency, in‐hospital NRS scores, and PCA satisfaction) variables, which are available prior to the development of chronic pain (3–12 months) and are suitable for early risk assessment. These factors can be used in clinical practice to identify high‐risk patients preoperatively or immediately postoperatively and enable timely interventions; and (2) contemporaneous variables, including psychological scores (EPDS and GAD‐7) measured at 12 months, which are collected simultaneously with the outcome (chronic pain at 12 months); these variables reflect emotional states that may be both a cause and a consequence of chronic pain (e.g., a bidirectional relationship) and thus are not recommended for early prediction but provide insights into long‐term mechanisms of pain persistence. The anxiety and depression that a patient has been experiencing for 12 months after surgery may indicate sustained physiological or psychological stress during the recovery process, which may collectively lead to the occurrence of chronic pain. This variable distinction ensures that the model is used appropriately for early risk stratification while overinterpretation of contemporaneous variables as predictive factors is avoided.
3.5. Recommendations for the Prevention and Management of CPSP‐CD
The findings of this study indicate that postoperative anxiety, depression, a history of dysmenorrhea, and a higher frequency of PCA use are significant risk factors for the development of CPSP‐CD. Consequently, the prevention and management of CPSP‐CD should transition from a traditional, single‐modality analgesic approach to a comprehensive multidimensional framework that includes psychological, physiological, and social factors. Through the implementation of perioperative psychological interventions, the optimization of acute phase analgesia, the addressing of high‐risk factors such as a history of dysmenorrhea, and the adoption of personalized management strategies with long‐term follow‐up, reducing the incidence of chronic pain and improving the long‐term quality of life of the patients is feasible.
3.6. Limitations of the Study
First, this was a single‐center prospective study in which all participants were recruited from tertiary hospitals and underwent standardized clinical diagnosis and treatment protocols. This kind of study setting differs from that of secondary hospitals and rural clinical practice settings and thus represents a potential source of selection bias, thereby limiting the generalization of the study conclusions to multicenter and larger‐scale populations. Second, the sample size of this study was relatively small (678 patients); while this sample size is sufficient to support the development of the predictive model, it may limit our ability to detect weak associations between less common predictors and CPSP‐CD. Third, the near‐perfect AUC values (approaching 1.000) observed for some models that were evaluated on the test set should be interpreted with caution. Although we adopted rigorous methodology to minimize overfitting, the observation of AUC = 1.000 remains a statistical extreme that warrants caution. The small number of positive cases (n = 66 at 6 months) in the test set may have contributed to this estimate, and larger external cohorts are required to confirm this finding. Fourth, the 12‐month follow‐up duration of this study only allows the assessment of short‐to‐medium term pain outcomes, precluding the analysis of long‐term pain status beyond 1 year postoperatively and thus the validation of the model's performance in predicting persistent chronic pain. Finally, we did not collect data on variables such as genetic factors and lifestyle factors (e.g., physical activity); these potential unmeasured confounding factors may exert unquantified effects on the study results. Our decision to not to apply imbalance correction techniques (e.g., SMOTE) may have affected model calibration, although recent evidence suggests that these techniques do not consistently improve discriminative performance.
This study was registered on ClinicalTrials.gov (NCT06704490) following enrollment of the first subject. Although this is a prospective observational study and the delay in registration does not alter the predefined study design, outcome measures, or analytical plan, we acknowledge that prospective registration prior to patient enrollment is the preferred standard for ensuring full transparency and minimizing potential reporting bias. This limitation should also be considered when interpreting the study results.
4. Conclusion
Model performance and predictive value: An MLPM‐CPSP‐CD model was successfully constructed and validated, demonstrating both high predictive accuracy and good clinical interpretability. The model exhibited outstanding performance in predicting chronic incisional pain at 3, 6, and 12 months postoperatively, as well as chronic non‐incisional pain at 12 months, with all associated AUC values exceeding 0.95. Given the lack of independent external validation, further multicenter cohort studies are needed to confirm the generalizability of the model.
Identification of key risk factors: A history of dysmenorrhea (SQ‐6) was identified as an important, stable predictor of chronic incisional pain at 3, 6, and 12 months after surgery, suggesting that it may represent a preexisting state of central sensitization. The intensity of acute postoperative pain, indirectly reflected in the PCA pump pressing frequency (SH‐5) and PCA opioid consumption (SH‐6), were shown to be core predictors of chronic incisional pain. Furthermore, patient satisfaction with PCA (SH‐7), which reflects the alignment between analgesic efficacy and patient expectations as well as their “sense of control” over pain, also contributed positively to predicting chronic incisional pain. For chronic non‐incisional pain at 12 months, the key predictor was a high score on the SQ‐6 (history of dysmenorrhea); an increased risk of non‐incisional pain was associated with higher values for SH‐12 (the GAD‐1 score at 12 months) and SH‐11 (the EPDS score at 12 months).
Clinical implications: In this study, chronic incisional pain and chronic non‐incisional pain after CD were analyzed separately, and their respective associated risk factors were explored to identify characteristics associated with a high risk of developing CPSP‐CD. These findings provide an important basis for the development of early targeted interventions and optimized perioperative pain management strategies, but more widespread, external validation is still needed to verify the clinical extrapolation value of these findings.
5. Methods
The design of this study comprises four core components: (1) data collection and preprocessing, (2) selection of important features, (3) construction of the MLPM‐CPSP‐CD, and (4) results analysis. The overall workflow is illustrated in Figure 5.
FIGURE 5.

Study design.
5.1. Data Collection and Data Preprocessing
5.1.1. Informed Consent
The study was conducted in accordance with the Declaration of Helsinki, approved by the Ethics Committee of Tongji Hospital, Huazhong University of Science and Technology (Approval No. TJ‐IRB202401025) and registered on ClinicalTrial.gov (NCT06704490). Patients were enrolled between February 2024 and July 2024, and written informed consent was obtained from all participants.
5.1.2. Data Collection
Sample size estimation: The sample size was estimated before model training using the pmsampsize R package (Riley's method) for binary prognostic prediction models. We set the target expected C‐statistic (AUC) to 0.85 and limited the number of core predictors to 11. The output of Riley's estimation method indicated a theoretical minimum total sample size of 327 patients for non‐incisional pain and 564 patients for incisional pain. Our final study cohort included 678 patients, which fully met the theoretical sample requirement for both pain subtypes under the prespecified expected AUC of 0.85 (Table S1).
The inclusion criteria were as follows: (1) age 18–50 years, (2) American Society of Anesthesiologists (ASA) classification: I–III, (3) term pregnancy and scheduled cesarean section planning, and (4) willingness to participate in the study and sign the informed consent form. The exclusion criteria were as follows: (1) a history of dementia, mental illness, or any central nervous system disease; (2) pregnancy concurrent with alcohol abuse and drug dependency; (3) difficulty performing follow‐up or poor patient compliance; (4) administration of other investigational drugs or participation in other clinical trials within 3 months prior to enrollment in the study; (5) severe complications during childbirth; and (6) inability to cooperate with the study for any reason. Only elective cesarean delivery patients were included to avoid confounders associated with the use of emergency procedures, whereas the exclusion of cases with incomplete data ensured model reliability.
We enrolled 792 elective cesarean patients at Tongji Hospital between February 2024 and July 2024, and written informed consent was obtained from all participants before surgery. The data included 16 preoperative variables, 10 intraoperative variables, and 12 postoperative variables.
Preoperative variables: Age, EPDS score, GAD‐7 score, BMI, ASA physical status classification, history of dysmenorrhea, pregnancy‐induced hypertension syndrome (PIH) status, gestational diabetes mellitus (GDM) status, thyroid disorders, method of delivery, previous miscarriage and pain, level of education, and Pain Catastrophizing Scale (PCS) score.
Intraoperative variables: Use of spinal anesthesia as well as the following 10 intraoperative variables were recorded: surgery duration, surgeon, spinal fentanyl use, incidence of intraoperative hypotension, blocking plane, dexamethasone use, oxycodone use, flurbiprofen axetil use, combined dexamethasone–flurbiprofen axetil used, and anesthesia duration.
Postoperative variables (in‐hospital): After surgery, the patients were given PCA pumps containing hydromorphone or nalbuphine, while diclofenac sodium was used as a remedial measure for poor analgesia. The following postoperative variables were recorded: PCA pump formula, resting and moving NRS scores, diclofenac sodium use, PCA pump pressing frequency and opioid consumption, patient satisfaction with PCA, and postoperative EPDS and GAD‐7 scores.
PCA compression frequency (SH‐5): The effective number of compressions of the PCA pump within 24 h after surgery. PCA opioid consumption (SH‐6): The total amount of opioid solution delivered through the PCA pump within 24 h after surgery, reported in milliliters (mL) of the prepared solution. The concentration of the hydromorphone PCA was 0.01 mg/mL, while the concentration of the nalbuphine PCA was 1 mg/mL. Patient satisfaction with PCA (SH‐7): Evaluated 24 h after surgery and given a score from 0 to 10 points (0 = extremely dissatisfied, 10 = very satisfied).
Postoperative variables (out of hospital): The researchers followed up the 792 patients for up to 12 months via WeChat or telephone. In‐hospital follow‐up visits were conducted at 1, 3, 6, and 12 months to record the duration of breastfeeding, the occurrence of chronic incisional pain, and the pain scores. Patients with NRS scores ≥ 4 were recorded as having moderate to severe pain. In addition to the above data, the patients’ EPDS scores, GAD‐7 scores, and occurrence of chronic non‐incisional pain at 12 months were recorded.
Primary outcome: The incidence of chronic pain at the surgical incision site at 3, 6, and 12 months after CD. Chronic incisional pain was operationally defined as pain lasting ≥ 3 months postoperatively (consistent with ICD‐11 criteria for CPSP) occurring at the surgical incision site.
Secondary outcomes: Chronic non‐incisional pain after CD, which was operationally defined as pain lasting ≥ 3 months postoperatively (consistent with the ICD‐11 criteria for CPSP) occurring at sites outside the surgical incision site; these sites included the lower back, pelvis, head, and extremities. Pain was classified as incisional if it was localized to the cesarean incision site; all other pain occurring outside the surgical incision site (single or multiple anatomical regions) was classified as non‐incisional pain.
Psychological scales: The EPDS (Cronbach's α = 0.82) and the GAD‐7 item scale (Cronbach's α = 0.83), both of which have been validated for postpartum populations [21, 24], were used to assess psychological status. Pain scales: The NRS (0–10 points; ≥ 4 points defined as moderate‐to‐severe pain), which has established reliability in postoperative pain measurement, was used to assess pain. PCA‐related variables: Use frequency and opioid consumption were automatically recorded by the PCA pump to ensure data objectivity; patient satisfaction with PCA was assessed using a five‐point Likert scale (1 = very dissatisfied, 5 = very satisfied), as validated in previous analgesia studies.
Data collection was standardized to ensure consistency and reliability: The researchers received the same training, and standardized questionnaires and SOP forms were used for recording preoperative, intraoperative, and postoperative variables; in‐hospital variables were checked daily for accuracy, and follow‐up teams underwent regular training to minimize interrater variability. Cross‐validation of 10% of the data selected at random showed a consistency rate > 95%.
Owing to the large number of variables in this study, codes were assigned for the subsequent analysis, as described in Table 2.
TABLE 2.
Codes corresponding to the analysis variables.
| Preoperative variables | Intraoperative variables | Postoperative variables | |||
|---|---|---|---|---|---|
| SQ‐1 | Age | SZ‐1 | Surgical duration | SH‐1 | PCA |
| SQ‐2 | Preoperative EPDS score | SZ‐2 | Surgeon | SH‐2 | Inadequate analgesia (resting) |
| SQ‐3 | Preoperative GAD‐7 score | SZ‐3 | Use of intraspinal fentanyl | SH‐3 | Inadequate analgesia (moving) |
| SQ‐4 | BMI | SZ‐4 | Intraoperative hypotension status | SH‐4 | Postoperative use of diclofenac sodium |
| SQ‐5 | ASA classification | SZ‐5 | Blockade level | SH‐5 | PCA pump pressing frequency |
| SQ‐6 | History of dysmenorrhea | SZ‐6 | Use of dexamethasone | SH‐6 | PCA opioid consumption |
| SQ‐7 | History of PIH | SZ‐7 | Use of oxycodone | SH‐7 | Patient satisfaction |
| SQ‐8 | History of GDM | SZ‐8 | Use of flurbiprofen axetil | SH‐8 | Duration of breastfeeding |
| SQ‐9 | History of hyperthyroidism | SZ‐9 | Use of flurbiprofen axetil and dexamethasone | SH‐9 | Postoperative EPDS score |
| SQ‐10 | History of hypothyroidism | SZ‐10 | Anesthesia duration | SH‐10 | Postoperative GAD‐7 score |
| SQ‐11 | History of vaginal delivery | SH‐11 | 12‐month postoperative EPDS score | ||
| SQ‐12 | History of CD | SH‐12 | 12‐month postoperative GAD‐7 score | ||
| SQ‐13 | History of induced abortion | ||||
| SQ‐14 | History of pain during pregnancy | ||||
| SQ‐15 | Educational level | ||||
| SQ‐16 | PCS score | ||||
Abbreviations: ASA, American Society of Anesthesiologists; BMI, body mass index; EPDS, Edinburgh Postnatal Depression Scale; GAD‐7, Generalized Anxiety Disorder‐7; GDM, gestational diabetes mellitus; PCA, patient‐controlled analgesia; PCS, Pain Catastrophizing Scale; PIH, pregnancy‐induced hypertension syndrome.
5.1.3. Data Cleaning
Among the 792 enrolled patients, 114 were excluded due to incomplete data or loss to follow‐up. Therefore, the data of 678 patients were finally included in the analysis. Specifically, participants with incomplete records or who were lost to follow‐up with key missing variables were directly excluded. The full participant screening procedure is presented in Figure 1. For the 678 included patients, no variables had more than 10 missing data points, which were addressed through multiple imputation.
5.1.4. Data Conversion
A total of 38 independent variables were included in this study, including 16 preoperative variables, 10 intraoperative variables, and 12 postoperative variables. The dependent variables included the occurrence of chronic incisional pain after surgery (evaluated at 3, 6, and 12 months postoperatively) and the occurrence of chronic non‐incisional pain at 12 months postoperatively, for a total of five outcome items. Categorical variables were numerically formatted using the Pandas module in Python 3.8 to meet the requirements of our ML modeling, while continuous variables were used unaltered.
5.1.5. Data Standardization
To eliminate scale differences among the features, optimize model performance, and prevent the gradient vanishing or explosion problem, we used StandardScaler for data standardization for distance‐based algorithms (e.g., SVMs) and models that require covariance matrix calculations (e.g., LR).
5.1.6. Data Partitioning
Following standard ML protocols, the dataset was partitioned into a training set (475 patients, 70%) and a validation set (203 patients, 30%). Notably, during the subsequent modeling processes, the training set was reused iteratively through a cross‐validation method and other techniques to optimize model performance.
5.2. Important Feature Selection
This study was performed on the Python 3.8 platform. The following methods were used for feature selection:
5.2.1. RF‐Based Boruta Algorithm
This algorithm involves training an RF model using a combination of original features and randomly generated “shadow features” and comparisons of feature importance. Features with importance higher than the maximum among the shadow features are labeled “important,” those with lower importance are labeled “unimportant,” and the rest are labeled “tentative.” The iterative process continues until all the features are definitively categorized or until the maximum number of iterations is reached. The final output includes lists of important, unimportant, and tentative features.
5.2.2. RF‐Based Recursive Feature Elimination (RFE)
This method iteratively removes the least important features. First, an RF model is trained with all the features to compute importance scores. The feature with the lowest score is then eliminated, and the model is retrained. This process is repeated until a predefined number of features is retained or the model performance, which is evaluated on the basis of the AUC, is optimized. The advantages of this method include the ability to efficiently handle high‐dimensional data and capture nonlinear relationships, thereby improving model efficiency and interpretability.
5.2.3. Mantel Test
The nonparametric Mantel test is used to examine the correlation between two distance matrices. It calculates Pearson or Spearman correlation coefficients (r) between the matrices and assesses statistical significance through permutation tests. The r value ranges from −1 to 1, with larger absolute values indicating stronger correlations. This method is particularly suitable for studying multivariate interaction effects.
5.3. Construction of the MLPM‐CPSP‐CD
Building upon previous work [28], in which a prediction model was developed for postoperative inadequate analgesia after cesarean delivery and the corresponding, fundamental ML procedures were described, this study further employed the RF‐based Boruta algorithm, RFE, and the Mantel test for important feature selection. A predictive model was then constructed with the Python 3.8 platform using six ML algorithms and the selected features: LR, RF, MLP, SVM, XGBoost, and GBM. Model performance was optimized through fivefold cross‐validation and a grid search. The six ML algorithms were selected to cover different model types—(1) LR: A linear model used for baseline comparison due to its ease of interpretability; (2) RF and GBM/XGBoost: Ensemble models designed to capture nonlinear relationships and interactions common in clinical data [18]; (3) SVM and MLP: Models suitable for high‐dimensional data that offer strong generalization ability [31]. Hyperparameter tuning was performed using fivefold cross‐validation and a grid search to avoid overfitting and optimize model performance, a standard approach for clinical prediction models [19, 25].
To comprehensively evaluate model performance, the area under the receiver operating characteristic curve (AUC‐ROC), PR curves, and AP values were obtained. Given that clinical medical data often contain substantial noise and confounding factors, an AUC value above 0.75 for clinical models is generally considered acceptable, whereas a value exceeding 0.85 indicates excellent model performance [18, 25].
Author Contributions
J.S. contributed to the study conceptualization, data visualization, and drafting of the original manuscript. W.M. and X.Z. contributed to the development of the methodology, study supervision, and critical revision of the manuscript. J.S. and K.Z. were responsible for data collection and investigation. J.S., W.M., and X.Z. were involved in the review and editing of the manuscript. All the authors read and approved the final manuscript.
Funding
The authors would like to acknowledge the support of the National Natural Science Foundation of China (grant no. 81271235), the Hubei Provincial Natural Science Foundation of China (grant no. 2023AFB117), the Research Fund of Tongji Hospital, Tongji Medical College, Huazhong University of Science and Technology (grant nos. 2019C03 and 2023B26), and the Special Project of the Science and Technology Research Institute of the National Health Commission (2020045).
Ethics Statement
The study was conducted in accordance with the Declaration of Helsinki, was approved by the Ethics Committee of Tongji Hospital, Huazhong University of Science and Technology (Approval No. TJ‐IRB202401025), and was registered on ClinicalTrial.gov (NCT06704490). All participants provided written informed consent.
Conflicts of Interest
The authors declare no conflicts of interest.
Supporting information
Supporting File 1: mco271131‐sup‐0001‐TableS1.doc
Acknowledgments
The authors have nothing to report.
Contributor Information
Wei Mei, Email: wmei@hust.edu.cn.
Xianwei Zhang, Email: ourpain@163.com.
Data Availability Statement
The datasets used and analyzed during the current study are available from the corresponding author upon reasonable request.
References
- 1. Schug S. A., Lavand'homme P., Barke A., et al., “The IASP Classification of Chronic Pain for ICD‐11: Chronic Postsurgical or Posttraumatic Pain,” Pain 160, no. 1 (2019): 45–52. [DOI] [PubMed] [Google Scholar]
- 2. Ciechanowicz S., Joy R. R., Kasmirski J., Blake L., Carvalho B., and Sultan P., “Incidence, Severity, and Interference of Chronic Postsurgical Pain After Cesarean Delivery: A Systematic Review and Meta‐Analysis,” Journal of Clinical Anesthesia 104 (2025): 111832. [DOI] [PubMed] [Google Scholar]
- 3. Peahl A. F., Smith R., Johnson T. R. B., Morgan D. M., and Pearlman M. D., “Better Late Than Never: Why Obstetricians Must Implement Enhanced Recovery After Cesarean,” American Journal of Obstetrics and Gynecology 221, no. 2 (2019): 117.e1–117.e7. [DOI] [PubMed] [Google Scholar]
- 4. Wang L. Z., Huang J. Y., Hu H. J., and Xia F., “Incidence of Chronic Postsurgical Pain After Caesarean Delivery: A Systematic Review and Meta‐Analysis,” Anaesthesia 80, no. 7 (2025): 834–845. [DOI] [PubMed] [Google Scholar]
- 5. Komatsu R., Ando K., and Flood P. D., “Factors Associated With Persistent Pain After Childbirth: A Narrative Review,” British Journal of Anaesthesia 124, no. 3 (2020): e117–e130. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Sharma L. R., Schaldemose E. L., Alaverdyan H., et al., “Perioperative Factors Associated With Persistent Postsurgical Pain After Hysterectomy, Cesarean Section, Prostatectomy, and Donor Nephrectomy: A Systematic Review and Meta‐Analysis,” Pain 163, no. 3 (2022): 425–435. [DOI] [PubMed] [Google Scholar]
- 7. Daly B., Young S., Marla R., et al., “Persistent Pain After Caesarean Section and Its Association With Maternal Anxiety and Socioeconomic Background,” International Journal of Obstetric Anesthesia 29 (2017): 57–63. [DOI] [PubMed] [Google Scholar]
- 8. Eisenach J. C., Pan P. H., Smiley R., Lavand'homme P., Landau R., and Houle T. T., “Severity of Acute Pain After Childbirth, but Not Type of Delivery, Predicts Persistent Pain and Postpartum Depression,” Pain 140, no. 1 (2008): 87–94. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Langenaeken A. L. and Lavand'homme P., “Chronic Pain After Cesarean Delivery: What Do We Know Today? A Narrative Review,” International Journal of Obstetric Anesthesia 62 (2025): 104331. [DOI] [PubMed] [Google Scholar]
- 10. Liu F., Li T., Zhou D., Shi S., and Gong X., “A Machine Learning‐Based Framework for Predicting Postpartum Chronic Pain: A Retrospective Study,” BMC Medical Informatics and Decision Making 25, no. 1 (2025): 168. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Yurashevich M., Devinney M., Foster M. W., et al., “Cerebrospinal Fluid Proteome of Patients With Persistent Pain and/or Postpartum Depression After Elective Cesarean Delivery: An Exploratory Prospective Cohort Study,” Journal of Clinical Anesthesia 104 (2025): 111855. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Dadgostar A., Bigder M., Punjani N., Lozo S., Chahal V., and Kavanagh A., “Does Preoperative Depression Predict Post‐Operative Surgical Pain: A Systematic Review,” International Journal of Surgery 41 (2017): 162–173. [DOI] [PubMed] [Google Scholar]
- 13. Yu M. Y., Yoo H. Y., Han G. I., Kim E. J., and Son Y. J., “Comparing the Performance of Machine Learning Models and Conventional Risk Scores for Predicting Major Adverse Cardiovascular Cerebrovascular Events After Percutaneous Coronary Intervention in Patients With Acute Myocardial Infarction: Systematic Review and Meta‐Analysis,” Journal of Medical Internet Research 27 (2025): e76215. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Lötsch J. and Ultsch A., “Machine Learning in Pain Research,” Pain 159, no. 4 (2018): 623–630. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. de Groot L. M., Twisk J. W. R., Kok A. A. L., and Heymans M. W., “Incorporating Longitudinal Variability in Prediction Models: A Comparison of Machine Learning and Logistic Regression in a Cohort Study With Long Follow‐Up,” Annals of Epidemiology 110 (2025): 51–65. [DOI] [PubMed] [Google Scholar]
- 16. Beam A. L. and Kohane I. S., “Big Data and Machine Learning in Health Care,” JAMA 319, no. 13 (2018): 1317–1318. [DOI] [PubMed] [Google Scholar]
- 17. Visibelli A., Peruzzi L., Poli P., et al., “Supporting Machine Learning Model in the Treatment of Chronic Pain,” Biomedicines 11, no. 7 (2023): 1776. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Waqas A., Tripathi A., Ramachandran R. P., Stewart P. A., and Rasool G., “Multimodal Data Integration for Oncology in the Era of Deep Neural Networks: A Review,” Frontiers in Artificial Intelligence 7 (2024): 1408843. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Arina P., Kaczorek M. R., Hofmaenner D. A., et al., “Prediction of Complications and Prognostication in Perioperative Medicine: A Systematic Review and PROBAST Assessment of Machine Learning Tools,” Anesthesiology 140, no. 1 (2024): 85–101. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20. Kim H. U., Han J. W., Sung P. S., et al., “Machine Learning–Based Selection of Resection vs Transplant and Survival in Hepatocellular Carcinoma,” JAMA Network Open 8, no. 9 (2025): e2532353. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21. Muhammad D. and Bendechache M., “Unveiling the Black Box: A Systematic Review of Explainable Artificial Intelligence in Medical Image Analysis,” Computational and Structural Biotechnology Journal 24 (2024): 542–560. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Karako K. and Tang W., “Applications of and Issues With Machine Learning in Medicine: Bridging the Gap With Explainable AI,” BioScience Trends 18, no. 6 (2025): 497–504. [DOI] [PubMed] [Google Scholar]
- 23. Sadeghi A., Hajati F., Argha A., H Lovell N., Yang M., and Alinejad‐Rokny H., “Interpretable Graph‐Based Models on Multimodal Biomedical Data Integration: A Technical Review and Benchmarking,” Nature Communications 17, no. 1 (2026): 5405. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Zhou Q., Liu F., Li J., et al., “Personalised Thrombo‐Embolic Risk Prediction After Endometrial Cancer Surgery: An Explainable AI Approach Using SHAP,” NPJ Digital Medicine 9, no. 1 (2026): 641. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Gozzi N., Preatoni G., Ciotti F., et al., “Unraveling the Physiological and Psychosocial Signatures of Pain by Machine Learning,” Med 5, no. 12 (2024): 1495–1509.e5. [DOI] [PubMed] [Google Scholar]
- 26. Rajkomar A., Dean J., and Kohane I., “Machine Learning in Medicine,” New England Journal of Medicine 380, no. 14 (2019): 1347–1358. [DOI] [PubMed] [Google Scholar]
- 27. van den Goorbergh R., van Smeden M., Timmerman D., and Van Calster B., “The Harm of Class Imbalance Corrections for Risk Prediction Models: Illustration and Simulation Using Logistic Regression,” Journal of the American Medical Informatics Association 29, no. 9 (2022): 1525–1534. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Zhang K., Jiao B., Sun J., et al., “Predicting High‐Risk Factors for Postoperative Inadequate Analgesia and Adverse Reactions in Cesarean Delivery Surgery: A Prospective Study,” International Journal of Surgery 111, no. 6 (2025): 3859–3875. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29. Swanson K., Wu E., Zhang A., et al., “From Patterns to Patients: Advances in Clinical Machine Learning for Cancer Diagnosis, Prognosis, and Treatment,” Cell 186 (2023): 1772–1791. [DOI] [PubMed] [Google Scholar]
- 30. Obermeyer Z. and Emanuel E. J., “Predicting the Future—Big Data, Machine Learning, and Clinical Medicine,” New England Journal of Medicine 375, no. 13 (2016): 1216–1219. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31. Lampe L., Niehaus S., Huppertz H. J., et al., “Comparative Analysis of Machine Learning Algorithms for Multi‐Syndrome Classification of Neurodegenerative Syndromes,” Alzheimer's Research & Therapy 14, no. 1 (2022): 62. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Raita Y., Goto T., Faridi M. K., Brown D. F. M., Camargo C. A. Jr, and Hasegawa K., “Emergency Department Triage Prediction of Clinical Outcomes Using Machine Learning Models,” Critical Care 23, no. 1 (2019): 64. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Charilaou P. and Battat R., “Machine Learning Models and Over‐Fitting Considerations,” World Journal of Gastroenterology 28, no. 5 (2022): 605–607. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. Jafrasteh B., Adeli E., Pohl K. M., Kuceyeski A., Sabuncu M. R., and Zhao Q., “Statistical Variability in Comparing Accuracy of Neuroimaging Based Classification Models via Cross Validation,” Scientific Reports 15, no. 1 (2025): 28745. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35. Boerma T., Ronsmans C., Melesse D. Y., et al., “Global Epidemiology of Use of and Disparities in Caesarean Sections,” Lancet 392, no. 10155 (2018): 1341–1348. [DOI] [PubMed] [Google Scholar]
- 36. Martinez V., Lehman T., Lavandhomme P., et al., “Chronic Postsurgical Pain: A European Survey,” European Journal of Anaesthesiology 41, no. 5 (2024): 351–362. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37. Xiao M. Z. X., Khan J. S., Dana E., et al., “Prevalence and Risk Factors for Chronic Postsurgical Pain After Cardiac Surgery: A Single‐Center Prospective Cohort Study,” Anesthesiology 139, no. 3 (2023): 309–320. [DOI] [PubMed] [Google Scholar]
- 38. Khan J. S., Sessler D. I., Chan M. T. V., et al., “Persistent Incisional Pain After Noncardiac Surgery: An International Prospective Cohort Study,” Anesthesiology 135, no. 4 (2021): 711–723. [DOI] [PubMed] [Google Scholar]
- 39. Wang L., Yang M., and Meng W., “Prevalence and Characteristics of Persistent Postoperative Pain After Thoracic Surgery: A Systematic Review and Meta‐Analysis,” Anesthesia and Analgesia 137, no. 1 (2023): 48–57. [DOI] [PubMed] [Google Scholar]
- 40. Flood P. and Wong C. A., “Chronic Pain Secondary to Childbirth: Does It Exist?,” Anesthesiology 118, no. 1 (2013): 16–18. [DOI] [PubMed] [Google Scholar]
- 41. Clark J. D., “Chronic Postoperative Pain: Preventable or Inevitable?,” Anesthesiology 135, no. 2 (2021): 215–217. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Weibel S., Neubert K., Jelting Y., et al., “Incidence and Severity of Chronic Pain After Caesarean Section: A Systematic Review With Meta‐Analysis,” European Journal of Anaesthesiology 33, no. 11 (2016): 853–865. [DOI] [PubMed] [Google Scholar]
- 43. Glare P., Aubrey K. R., and Myles P. S., “Transition From Acute to Chronic Pain After Surgery,” Lancet 393, no. 10180 (2019): 1537–1546. [DOI] [PubMed] [Google Scholar]
- 44. Lavand'homme P., “Postpartum Chronic Pain,” Minerva Anestesiologica 85, no. 3 (2019): 320–324. [DOI] [PubMed] [Google Scholar]
- 45. Duan G., Xiang G., Guo S., et al., “Genotypic Analysis of SCN9A for Prediction of Postoperative Pain in Female Patients Undergoing Gynecological Laparoscopic Surgery,” Pain Physician 19, no. 1 (2016): E151–E162. [PubMed] [Google Scholar]
- 46. Duan G., Xiang G., Zhang X., Yuan R., Zhan H., and Qi D., “A Single‐Nucleotide Polymorphism in SCN9A May Decrease Postoperative Pain Sensitivity in the General Population,” Anesthesiology 118, no. 2 (2013): 436–442. [DOI] [PubMed] [Google Scholar]
- 47. Aubrun F., “Comment Évaluer la Douleur Postopératoire? [How Is Postoperative Pain Evaluated?],” Annales Françaises d'Anesthésie et de Réanimation 17, no. 6 (1998): 462–470. [DOI] [PubMed] [Google Scholar]
- 48. Niraj G. and Rowbotham D. J., “Persistent Postoperative Pain: Where Are We Now?,” British Journal of Anaesthesia 107, no. 1 (2011): 25–29. [DOI] [PubMed] [Google Scholar]
- 49. Maurice‐Szamburski A., Bringuier S., Auquier P., and Capdevila X., “From Pain Level to Pain Experience: Redefining Acute Pain Assessment to Enhance Understanding of Chronic Postsurgical Pain,” British Journal of Anaesthesia 133, no. 5 (2024): 1021–1027. [DOI] [PubMed] [Google Scholar]
- 50. Nelson E. R., Gan T. J., and Urman R. D., “Predicting Postoperative Pain: A Complex Interplay of Multiple Factors,” Anesthesia and Analgesia 132, no. 3 (2021): 652–655. [DOI] [PubMed] [Google Scholar]
- 51. Pan P. H., Tonidandel A. M., Aschenbrenner C. A., Houle T. T., Harris L. C., and Eisenach J. C., “Predicting Acute Pain After Cesarean Delivery Using Three Simple Questions,” Anesthesiology 118, no. 5 (2013): 1170–1179. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52. Emery C. F., Finkel D., and Dahl Aslan A. K., “Bidirectional Associations Between Body Mass and Bodily Pain Among Middle‐Aged and Older Adults,” Pain 163, no. 10 (2022): 2061–2067. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53. van Helmond N., Timmerman H., van Dasselaar N. T., et al., “High Body Mass Index Is a Potential Risk Factor for Persistent Postoperative Pain After Breast Cancer Treatment,” Pain Physician 20, no. 5 (2017): E661–E671. [PubMed] [Google Scholar]
- 54. Dai X., Wang C., Jiang P., and Mei X., “Unraveling Chronic Pain: From Mechanisms and Risks to Diagnosis and Treatment,” MedComm 7, no. 4 (2026): e70685. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55. Wu F., Liu J., Zheng L., et al., “Preoperative Pain Sensitivity and Its Correlation With Postoperative Acute and Chronic Pain: A Systematic Review and Meta‐Analysis,” British Journal of Anaesthesia 133, no. 3 (2024): 591–604. [DOI] [PubMed] [Google Scholar]
- 56. Chen D., Yang H., Yang L., et al., “Preoperative Psychological Symptoms and Chronic Postsurgical Pain: Analysis of the Prospective China Surgery and Anaesthesia Cohort Study,” British Journal of Anaesthesia 132, no. 2 (2024): 359–371. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Supporting File 1: mco271131‐sup‐0001‐TableS1.doc
Data Availability Statement
The datasets used and analyzed during the current study are available from the corresponding author upon reasonable request.
