<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="research-article" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Surg.</journal-id>
<journal-title>Frontiers in Surgery</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Surg.</abbrev-journal-title>
<issn pub-type="epub">2296-875X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fsurg.2025.1631651</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Surgery</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Develop and validate a machine learning model to predict the risk of persistent pain after percutaneous transforaminal endoscopic discectomy</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Yuan</surname><given-names>Jun</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref><role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/><role content-type="https://credit.niso.org/contributor-roles/data-curation/"/><role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/><role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/><role content-type="https://credit.niso.org/contributor-roles/methodology/"/><role content-type="https://credit.niso.org/contributor-roles/software/"/><role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/></contrib>
<contrib contrib-type="author" corresp="yes"><name><surname>Fu</surname><given-names>Jun</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="corresp" rid="cor1">&#x002A;</xref><uri xlink:href="https://loop.frontiersin.org/people/3072897/overview"/><role content-type="https://credit.niso.org/contributor-roles/investigation/"/><role content-type="https://credit.niso.org/contributor-roles/project-administration/"/><role content-type="https://credit.niso.org/contributor-roles/resources/"/><role content-type="https://credit.niso.org/contributor-roles/supervision/"/><role content-type="https://credit.niso.org/contributor-roles/validation/"/><role content-type="https://credit.niso.org/contributor-roles/visualization/"/><role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/></contrib>
</contrib-group>
<aff id="aff1"><label><sup>1</sup></label><institution>Department of Orthopedics, Wuhan Hospital of Traditional Chinese Medicine</institution>, <addr-line>Wuhan, Hubei</addr-line>, <country>China</country></aff>
<aff id="aff2"><label><sup>2</sup></label><institution>Department of Pain, Hubei Maternal and Child Health Hospital Affiliated to Tongji Medical College, Huazhong University of Science and Technology</institution>, <addr-line>Wuhan, Hubei</addr-line>, <country>China</country></aff>
<author-notes>
<fn fn-type="edited-by"><p><bold>Edited by:</bold> Siying Song, Massachusetts General Hospital and Harvard Medical School, United States</p></fn>
<fn fn-type="edited-by"><p><bold>Reviewed by:</bold> Shaocheng Liu, Capital Medical University, China</p>
<p>Hang He, University Hospital of D&#x00FC;sseldorf, Germany</p>
<p>Qihan Guo, Capital Medical University, China</p></fn>
<corresp id="cor1"><label>&#x002A;</label><bold>Correspondence:</bold> Jun Fu <email>fujun663862@163.com</email></corresp>
</author-notes>
<pub-date pub-type="epub"><day>23</day><month>07</month><year>2025</year></pub-date>
<pub-date pub-type="collection"><year>2025</year></pub-date>
<volume>12</volume><elocation-id>1631651</elocation-id>
<history>
<date date-type="received"><day>20</day><month>05</month><year>2025</year></date>
<date date-type="accepted"><day>23</day><month>06</month><year>2025</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2025 Yuan and Fu.</copyright-statement>
<copyright-year>2025</copyright-year><copyright-holder>Yuan and Fu</copyright-holder><license license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract><sec><title>Background</title>
<p>Persistent pain is a common complication following percutaneous transforaminal endoscopic discectomy (PTED) for lumbar disc herniation. Identifying associated risk factors and developing a predictive model are crucial for guiding clinical decisions. This study aims to utilize machine learning models to predict persistent pain, identify key influencing factors, and construct a risk model to assess the likelihood of persistent pain.</p>
</sec><sec><title>Methods</title>
<p>We first compared baseline characteristics and pathological indicators between patients who developed persistent pain and those who did not after PTED. Significant factors were used as input features in four machine learning models: Logistic Regression (LR), Support Vector Machine (SVM), XGBoost, and Multilayer Perceptron (MLP). Each model was optimized through grid search and 10-fold cross-validation. Performance was evaluated using ROC curves, F1 score, accuracy, recall, and precision. Models with AUC values exceeding 0.9, specifically XGBoost and MLP, were selected for SHAP visualization and risk prediction model construction.</p>
</sec><sec><title>Results</title>
<p>Among the four machine learning models, XGBoost and MLP achieved the best performance, with AUC values of 0.907 and 0.916, respectively. SHAP analysis identified a history of lumbar spine trauma and herniation calcification as key features positively influencing persistent pain risk. Elevated inflammatory markers (e.g., CRP, ESR, and WBC) and older age also significantly impacted predictions. Using the most important features from XGBoost and MLP, a risk prediction model was constructed and externally validated, achieving an AUC of 0.798, indicating good predictive accuracy.</p>
</sec><sec><title>Conclusion</title>
<p>History of lumbar spine trauma, herniation calcification, and inflammatory markers are important predictors of persistent pain after PTED. The risk prediction model based on XGBoost and MLP shows high predictive accuracy and can serve as a valuable tool for clinical decision-making.</p>
</sec>
</abstract>
<kwd-group>
<kwd>lumbar disc herniation</kwd>
<kwd>machine learning</kwd>
<kwd>percutaneous transforaminal endoscopic discectomy</kwd>
<kwd>persistent pain</kwd>
<kwd>risk prediction model</kwd>
</kwd-group><counts>
<fig-count count="4"/>
<table-count count="3"/><equation-count count="1"/><ref-count count="24"/><page-count count="9"/><word-count count="0"/></counts><custom-meta-wrap><custom-meta><meta-name>section-at-acceptance</meta-name><meta-value>Orthopedic Surgery</meta-value></custom-meta></custom-meta-wrap>
</article-meta>
</front>
<body><sec id="s1" sec-type="intro"><label>1</label><title>Introduction</title>
<p>Lumbar disc herniation is a leading cause of lower back and leg pain, significantly affecting patients&#x0027; quality of life and imposing substantial burdens on both society and families (<xref ref-type="bibr" rid="B1">1</xref>&#x2013;<xref ref-type="bibr" rid="B3">3</xref>). With advancements in minimally invasive techniques, percutaneous transforaminal endoscopic discectomy (PTED) has emerged as a key treatment for lumbar disc herniation (<xref ref-type="bibr" rid="B4">4</xref>&#x2013;<xref ref-type="bibr" rid="B6">6</xref>). This approach minimizes surgical incisions and reduces damage to surrounding tissues, offering benefits such as faster recovery and fewer complications, which has led to its widespread adoption in clinical practice (<xref ref-type="bibr" rid="B7">7</xref>). However, despite the overall success of the procedure, some patients continue to experience persistent postoperative pain, which extends the recovery period and adversely impacts their quality of life (<xref ref-type="bibr" rid="B8">8</xref>). The mechanisms behind this persistent pain are not yet fully understood, and accurately identifying high-risk patients before surgery remains challenging, complicating clinical management.</p>
<p>In recent years, machine learning has become increasingly prominent in medical research and clinical applications (<xref ref-type="bibr" rid="B9">9</xref>). Through training and optimization with large datasets, machine learning models can identify hidden patterns within complex data, significantly improving the accuracy and stability of disease prediction, especially for complex phenomena such as postoperative persistent pain (<xref ref-type="bibr" rid="B10">10</xref>). In this study, we applied four machine learning models&#x2014;Logistic Regression (LR), Support Vector Machine (SVM) (<xref ref-type="bibr" rid="B11">11</xref>), XGBoost (<xref ref-type="bibr" rid="B12">12</xref>), and Multilayer Perceptron (MLP) (<xref ref-type="bibr" rid="B13">13</xref>)&#x2014;to explore the effects of various features on persistent pain following PTED. By comparing the performance of these models, we selected the optimal model and used SHAP (Shapley Additive Explanations) values to interpret the impact of each feature on the prediction outcome, clarifying the role of key risk factors in persistent pain.</p>
<p>Through this research, we aim to identify the key factors contributing to persistent pain following lumbar disc herniation surgery and develop an effective risk prediction model. This model is intended to support clinical decision-making by helping clinicians identify high-risk patients prior to surgery, tailor individualized rehabilitation plans, and ultimately improve postoperative quality of life. We hope that the findings from this study will not only deepen the understanding of persistent pain after PTED but also provide valuable insights for managing other types of postoperative pain.</p>
</sec>
<sec id="s2" sec-type="methods"><label>2</label><title>Materials and methods</title>
<sec id="s2a"><label>2.1</label><title>Patient selection</title>
<p>Patients with lumbar disc herniation who underwent percutaneous transforaminal endoscopic discectomy at our hospital were retrospectively collected between May 2021 and May 2023 for the training cohort, and between June 2023 and June 2024 for the validation set. The former served as the training set, while the latter was used as the external validation set. Inclusion criteria were as follows: (1) age between 18 and 75; (2) grade of spinal spondylolisthesis&#x2009;&#x2264;&#x2009;Grade I; (3) Pfirrmann Grading of Grade II or Grade III; (4) lumbar segments involved were L3&#x2013;L4, L4&#x2013;L5, or L5&#x2013;S1. Patients were divided into a persistent pain group and a non-persistent pain group based on the presence of persistent pain postoperatively. Exclusion criteria included: (1) presence of other diseases affecting the structure or function of the lumbar spine; (2) undergoing other interventions during follow-up that may influence lumbar pain (such as spinal fusion surgery or nerve block therapy); (3) severe hepatic or renal dysfunction; (4) serious systemic diseases such as malignancies; (5) severe mental or psychological disorders (e.g., major depression or severe anxiety) or poor treatment compliance; and (6) missing key data. Persistent pain was defined as a VAS score&#x2009;&#x2265;&#x2009;4 and SF-36 scores&#x2009;&#x003C;&#x2009;50 in the pain and physical function domains at the 1-month postoperative follow-up. In the training set of 450 cases, 54 experienced postoperative persistent pain.</p>
</sec>
<sec id="s2b"><label>2.2</label><title>Data collection</title>
<p>We collected baseline characteristics and pathological indicators for each patient, including age, gender, BMI, history of lumbar spine trauma, duration of disease (whether more than 6 months), herniation calcification, spondylolisthesis grade, Pfirrmann Grading (<xref ref-type="bibr" rid="B14">14</xref>), lumbar segments (L3&#x2013;L4, L4&#x2013;L5, L5&#x2013;S1), sagittal range of motion (sROM), and inflammatory indicators [C-Reactive Protein [CRP], Erythrocyte Sedimentation Rate [ESR], and White Blood Cell Count [WBC]]. These data were obtained from patient medical records and preoperative imaging results.</p>
</sec>
<sec id="s2c"><label>2.3</label><title>Machine learning model construction</title>
<p>To predict the occurrence of persistent postoperative pain, we selected four commonly used machine learning models for analysis: Logistic Regression (LR), Support Vector Machine (SVM), XGBoost, and Multilayer Perceptron (MLP). All input features were normalized before training to ensure consistency across different feature scales during model training. The DeLong test was used to perform pairwise comparisons of AUC values between models, with a <italic>P</italic>-value&#x2009;&#x003C;&#x2009;0.05 indicating a statistically significant difference in AUC.</p>
</sec>
<sec id="s2d"><label>2.4</label><title>Model tuning and validation</title>
<p>To optimize model performance, we employed grid search combined with 10-fold cross-validation to fine-tune the parameters of each model. In this process, the dataset was split into 10 subsets, with 9 subsets used for training and 1 subset for validation in each iteration. After completing all 10 iterations, the average performance metrics were calculated. The evaluation metrics included the area under the ROC curve (AUC), F1 Score, Accuracy, Recall, and Precision.</p>
</sec>
<sec id="s2e"><label>2.5</label><title>SHAP value analysis</title>
<p>To understand the prediction mechanism of the machine learning models, we used SHAP (Shapley Additive Explanations) values to explain the contribution of each feature to the prediction results (<xref ref-type="bibr" rid="B15">15</xref>). SHAP values quantify both the positive and negative impacts, as well as the importance of each feature on the prediction outcome, by assessing each feature&#x0027;s influence on the model output across different scenarios. We used SHAP values to analyze the direction and magnitude of each feature&#x0027;s effect on predicting persistent pain.</p>
</sec>
<sec id="s2f"><label>2.6</label><title>Risk model construction and validation</title>
<p>Based on the most important features identified through SHAP analysis, we constructed a simplified risk model to predict the risk of persistent postoperative pain. The primary formula was:<disp-formula><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="UDM1"><mml:mrow><mml:mi mathvariant="normal">Risk</mml:mi></mml:mrow><mml:mspace width="thinmathspace" /><mml:mrow><mml:mi mathvariant="normal">Index</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mi mathvariant="normal">SHAP</mml:mi><mml:mo>&#x2217;</mml:mo><mml:mi mathvariant="normal">Featur</mml:mi></mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">e</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:mi mathvariant="normal">SHAP</mml:mi><mml:mo>&#x2217;</mml:mo><mml:mi mathvariant="normal">Featur</mml:mi></mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">e</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mn>2</mml:mn><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:mi mathvariant="normal">SHAP</mml:mi><mml:mo>&#x2217;</mml:mo><mml:mi mathvariant="normal">Featur</mml:mi></mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">e</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mn>3</mml:mn><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:msub></mml:math></disp-formula>The SHAP values represent the average SHAP values from our chosen machine learning model. The top three important features were selected as input variables, and the model performance was validated on an external validation set. Model performance was evaluated using the AUC to assess its predictive capability.</p>
</sec>
<sec id="s2g"><label>2.7</label><title>Statistical analysis</title>
<p>All statistical analyses were conducted using R software, primarily utilizing the caret (<xref ref-type="bibr" rid="B16">16</xref>), iml, and shapviz packages. A <italic>P</italic>-value less than 0.05 was considered statistically significant. Continuous variables were presented as median (range) and compared using the Mann&#x2013;Whitney <italic>U</italic>-test, while categorical variables were expressed as frequency (percentage) and analyzed with the Chi-square test or Fisher&#x0027;s exact test, as appropriate.</p>
</sec>
</sec>
<sec id="s3" sec-type="results"><label>3</label><title>Results</title>
<sec id="s3a"><label>3.1</label><title>Differences in baseline characteristics and pathological indicators between patients with and without persistent pain</title>
<p>The results showed that patients with persistent pain were older, had a higher proportion of lumbar spine trauma history, and a significantly higher percentage of disease duration exceeding 6 months. These patients also had higher rates of herniation calcification, mild spondylolisthesis (Grade I), and Pfirrmann Grade III, with a significant increase in L4-L5 segment involvement. Additionally, levels of inflammatory markers, including C-reactive protein (CRP), erythrocyte sedimentation rate (ESR), and white blood cell count (WBC), were higher in patients with persistent pain compared to those without (<xref ref-type="table" rid="T1">Table&#x00A0;1</xref>). The training set (<italic>n</italic>&#x2009;&#x003D;&#x2009;316) and external validation set (<italic>n</italic>&#x2009;&#x003D;&#x2009;134) showed a balanced distribution across multiple demographic characteristics such as age and BMI, as well as clinical indicators including disease duration and lumbar spondylolisthesis. There were no significant statistical differences between the two cohorts, indicating good comparability (<xref ref-type="sec" rid="s12">Supplementary Table S1</xref>).</p>
<table-wrap id="T1" position="float"><label>Table 1</label>
<caption><p>Differences in basic characteristics and pathological indicators between patients with persistent postoperative pain and those without persistent postoperative pain.</p></caption>
<table frame="hsides" rules="groups">
<colgroup>
<col align="left"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th valign="top" align="left">Variables</th>
<th valign="top" align="center">All patients (<italic>n</italic>&#x2009;&#x003D;&#x2009;450)</th>
<th valign="top" align="center">No persistent pain (<italic>n</italic>&#x2009;&#x003D;&#x2009;396)</th>
<th valign="top" align="center">Persistent pain (<italic>n</italic>&#x2009;&#x003D;&#x2009;54)</th>
<th valign="top" align="center"><italic>P</italic>-value</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Age (years)</td>
<td valign="top" align="center">43 (20&#x2013;66)</td>
<td valign="top" align="center">42 (20&#x2013;66)</td>
<td valign="top" align="center">50 (24&#x2013;65)</td>
<td valign="top" align="center">0.0051</td>
</tr>
<tr>
<td valign="top" align="left">BMI (kg/m&#x00B2;)</td>
<td valign="top" align="center">26.89 (17.02&#x2013;34.98)</td>
<td valign="top" align="center">26.89 (17.02&#x2013;34.94)</td>
<td valign="top" align="center">27.16 (18.09&#x2013;34.98)</td>
<td valign="top" align="center">0.815</td>
</tr>
<tr>
<td valign="top" align="left">Gender</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.2160683</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Male</td>
<td valign="top" align="center">308 (68.44&#x0025;)</td>
<td valign="top" align="center">275 (69.44&#x0025;)</td>
<td valign="top" align="center">33 (61.11&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Female</td>
<td valign="top" align="center">142 (31.56&#x0025;)</td>
<td valign="top" align="center">121 (30.56&#x0025;)</td>
<td valign="top" align="center">21 (38.89&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Smoking</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.2513807</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Yes</td>
<td valign="top" align="center">76 (16.89&#x0025;)</td>
<td valign="top" align="center">64 (16.16&#x0025;)</td>
<td valign="top" align="center">12 (22.22&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">374 (83.11&#x0025;)</td>
<td valign="top" align="center">332 (83.84&#x0025;)</td>
<td valign="top" align="center">42 (77.78&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Drinking</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.2702325</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Yes</td>
<td valign="top" align="center">87 (19.33&#x0025;)</td>
<td valign="top" align="center">80 (20.2&#x0025;)</td>
<td valign="top" align="center">7 (12.96&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">363 (80.67&#x0025;)</td>
<td valign="top" align="center">316 (79.8&#x0025;)</td>
<td valign="top" align="center">47 (87.04&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">History of lumbar spine trauma</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">1.90E-41</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Yes</td>
<td valign="top" align="center">54 (12&#x0025;)</td>
<td valign="top" align="center">10 (2.53&#x0025;)</td>
<td valign="top" align="center">44 (81.48&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">396 (88&#x0025;)</td>
<td valign="top" align="center">386 (97.47&#x0025;)</td>
<td valign="top" align="center">10 (18.52&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Course of Disease</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.001176945</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;&#x2264;6 Months</td>
<td valign="top" align="center">153 (34&#x0025;)</td>
<td valign="top" align="center">145 (36.62&#x0025;)</td>
<td valign="top" align="center">8 (14.81&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;&#x003E;6 Months</td>
<td valign="top" align="center">297 (66&#x0025;)</td>
<td valign="top" align="center">251 (63.38&#x0025;)</td>
<td valign="top" align="center">46 (85.19&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Herniation calcification</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">9.13E-21</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Yes</td>
<td valign="top" align="center">57 (12.67&#x0025;)</td>
<td valign="top" align="center">24 (6.06&#x0025;)</td>
<td valign="top" align="center">33 (61.11&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">393 (87.33&#x0025;)</td>
<td valign="top" align="center">372 (93.94&#x0025;)</td>
<td valign="top" align="center">21 (38.89&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Lumbar Spondylolisthesis</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">6.64E-18</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Grade I</td>
<td valign="top" align="center">129 (28.67&#x0025;)</td>
<td valign="top" align="center">85 (21.46&#x0025;)</td>
<td valign="top" align="center">44 (81.48&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">321 (71.33&#x0025;)</td>
<td valign="top" align="center">311 (78.54&#x0025;)</td>
<td valign="top" align="center">10 (18.52&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Spinal Canal Morphology</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.09771195</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Cloverleaf Shape</td>
<td valign="top" align="center">65 (14.44&#x0025;)</td>
<td valign="top" align="center">53 (13.38&#x0025;)</td>
<td valign="top" align="center">12 (22.22&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Non-Cloverleaf Shape</td>
<td valign="top" align="center">385 (85.56&#x0025;)</td>
<td valign="top" align="center">343 (86.62&#x0025;)</td>
<td valign="top" align="center">42 (77.78&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Facet joint degeneration</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.06434208</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Yes</td>
<td valign="top" align="center">431 (95.78&#x0025;)</td>
<td valign="top" align="center">382 (96.46&#x0025;)</td>
<td valign="top" align="center">49 (90.74&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;No</td>
<td valign="top" align="center">19 (4.22&#x0025;)</td>
<td valign="top" align="center">14 (3.54&#x0025;)</td>
<td valign="top" align="center">5 (9.26&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Pfirrmann Grading</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.03438494</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Grade II</td>
<td valign="top" align="center">158 (35.11&#x0025;)</td>
<td valign="top" align="center">146 (36.87&#x0025;)</td>
<td valign="top" align="center">12 (22.22&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;Grade III</td>
<td valign="top" align="center">292 (64.89&#x0025;)</td>
<td valign="top" align="center">250 (63.13&#x0025;)</td>
<td valign="top" align="center">42 (77.78&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">Lumbar Segments</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.04992969</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;L3&#x2013;L4</td>
<td valign="top" align="center">47 (10.44&#x0025;)</td>
<td valign="top" align="center">46 (11.62&#x0025;)</td>
<td valign="top" align="center">1 (1.85&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;L4&#x2013;L5</td>
<td valign="top" align="center">210 (46.67&#x0025;)</td>
<td valign="top" align="center">180 (45.45&#x0025;)</td>
<td valign="top" align="center">30 (55.56&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;L5&#x2013;S1</td>
<td valign="top" align="center">193 (42.89&#x0025;)</td>
<td valign="top" align="center">170 (42.93&#x0025;)</td>
<td valign="top" align="center">23 (42.59&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">C-Reactive Protein (mg/L)</td>
<td valign="top" align="center">11.88 (5.62&#x2013;18.31)</td>
<td valign="top" align="center">11.68 (5.62&#x2013;18.31)</td>
<td valign="top" align="center">13.88 (6.47&#x2013;18.27)</td>
<td valign="top" align="center">0.00227</td>
</tr>
<tr>
<td valign="top" align="left">Erythrocyte Sedimentation Rate (mm/h)</td>
<td valign="top" align="center">19.07 (12.62&#x2013;25.40)</td>
<td valign="top" align="center">18.90 (12.62&#x2013;25.40)</td>
<td valign="top" align="center">20.60 (12.93&#x2013;25.27)</td>
<td valign="top" align="center">0.00213</td>
</tr>
<tr>
<td valign="top" align="left">White Blood Cell Count (10<sup>&#x2212;9</sup>/L)</td>
<td valign="top" align="center">7.10 (4.92&#x2013;9.60)</td>
<td valign="top" align="center">6.99 (4.92&#x2013;9.53)</td>
<td valign="top" align="center">8.13 (5.01&#x2013;9.60)</td>
<td valign="top" align="center">0.000538</td>
</tr>
<tr>
<td valign="top" align="left">Sagittal Range of Motion (sROM)</td>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center"/>
<td valign="top" align="center">0.4703628</td>
</tr>
<tr>
<td valign="top" align="left">&#x2003;&#x003C;30&#x00B0;</td>
<td valign="top" align="center">246 (54.67&#x0025;)</td>
<td valign="top" align="center">219 (55.3&#x0025;)</td>
<td valign="top" align="center">27 (50&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
<tr>
<td valign="top" align="left">&#x2003;&#x2265;30&#x00B0;</td>
<td valign="top" align="center">204 (45.33&#x0025;)</td>
<td valign="top" align="center">177 (44.7&#x0025;)</td>
<td valign="top" align="center">27 (50&#x0025;)</td>
<td valign="top" align="center"/>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3b"><label>3.2</label><title>Selection of machine learning models</title>
<p>These significant factors were then input as independent variables into four machine learning models. The results showed that the ROC values for these four models were 0.867, 0.888, 0.907, and 0.916, respectively (<xref ref-type="table" rid="T2">Table&#x00A0;2</xref>) (<xref ref-type="fig" rid="F1">Figure&#x00A0;1</xref>). Among them, the AUC values of the XGBoost and MLP models were both above 0.9, and these models also performed excellently in terms of F1 Score, Accuracy, Recall, and Precision. The DeLong test showed that the AUC values of the XGBoost and MLP models were significantly higher than those of the LR and SVM models (<italic>P</italic>&#x2009;&#x003C;&#x2009;0.05). Therefore, XGBoost and MLP were selected for visualization analysis (<xref ref-type="table" rid="T3">Table&#x00A0;3</xref>).</p>
<table-wrap id="T2" position="float"><label>Table 2</label>
<caption><p>ROC curve parameters of four machine learning models and risk indicators in the test Set and external validation Set.</p></caption>
<table frame="hsides" rules="groups">
<colgroup>
<col align="left"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th valign="top" align="left">Model</th>
<th valign="top" align="center">AUC</th>
<th valign="top" align="center">AUC_CI_Lower</th>
<th valign="top" align="center">AUC_CI_Upper</th>
<th valign="top" align="center">Best_Threshold</th>
<th valign="top" align="center">youden</th>
<th valign="top" align="center">Sensitivity</th>
<th valign="top" align="center">Specificity</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">LR</td>
<td valign="top" align="center">0.867</td>
<td valign="top" align="center">0.717</td>
<td valign="top" align="center">1.000</td>
<td valign="top" align="center">0.525</td>
<td valign="top" align="center">0.804</td>
<td valign="top" align="center">0.813</td>
<td valign="top" align="center">0.992</td>
</tr>
<tr>
<td valign="top" align="left">SVM</td>
<td valign="top" align="center">0.888</td>
<td valign="top" align="center">0.803</td>
<td valign="top" align="center">0.973</td>
<td valign="top" align="center">0.005</td>
<td valign="top" align="center">0.649</td>
<td valign="top" align="center">0.938</td>
<td valign="top" align="center">0.712</td>
</tr>
<tr>
<td valign="top" align="left">XGBoost</td>
<td valign="top" align="center">0.907</td>
<td valign="top" align="center">0.808</td>
<td valign="top" align="center">1.000</td>
<td valign="top" align="center">0.426</td>
<td valign="top" align="center">0.787</td>
<td valign="top" align="center">0.813</td>
<td valign="top" align="center">0.975</td>
</tr>
<tr>
<td valign="top" align="left">MLP</td>
<td valign="top" align="center">0.916</td>
<td valign="top" align="center">0.800</td>
<td valign="top" align="center">1.000</td>
<td valign="top" align="center">0.713</td>
<td valign="top" align="center">0.867</td>
<td valign="top" align="center">0.875</td>
<td valign="top" align="center">0.992</td>
</tr>
<tr>
<td valign="top" align="left">Risk Index</td>
<td valign="top" align="center">0.798</td>
<td valign="top" align="center">0.685</td>
<td valign="top" align="center">0.912</td>
<td valign="top" align="center">31.109</td>
<td valign="top" align="center">0.504</td>
<td valign="top" align="center">0.750</td>
<td valign="top" align="center">0.754</td>
</tr>
</tbody>
</table>
</table-wrap>
<fig id="F1" position="float"><label>Figure 1</label>
<caption><p>Four machine learning models&#x2019; ROC curves on the external validation set.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="fsurg-12-1631651-g001.tif"><alt-text content-type="machine-generated">Four ROC curves labeled A to D for different models: (A) Logistic Regression, (B) Support Vector Machine, (C) XGBoost, and (D) Multi-Layer Perceptron. Each curve plots sensitivity against one minus specificity, demonstrating each model's classification performance.</alt-text>
</graphic>
</fig>
<table-wrap id="T3" position="float"><label>Table 3</label>
<caption><p>Comparison of performance evaluation metrics for four machine learning models.</p></caption>
<table frame="hsides" rules="groups">
<colgroup>
<col align="left"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
<col align="center"/>
</colgroup>
<thead>
<tr>
<th valign="top" align="left">Model</th>
<th valign="top" align="center">F1 Score</th>
<th valign="top" align="center">Accuracy</th>
<th valign="top" align="center">Recall</th>
<th valign="top" align="center">Precision</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">LR</td>
<td valign="top" align="center">86.67</td>
<td valign="top" align="center">97.01</td>
<td valign="top" align="center">81.25</td>
<td valign="top" align="center">92.86</td>
</tr>
<tr>
<td valign="top" align="left">SVM</td>
<td valign="top" align="center">62.50</td>
<td valign="top" align="center">91.04</td>
<td valign="top" align="center">62.50</td>
<td valign="top" align="center">62.50</td>
</tr>
<tr>
<td valign="top" align="left">XGBoost</td>
<td valign="top" align="center">75.86</td>
<td valign="top" align="center">94.78</td>
<td valign="top" align="center">68.75</td>
<td valign="top" align="center">84.62</td>
</tr>
<tr>
<td valign="top" align="left">MLP</td>
<td valign="top" align="center">82.35</td>
<td valign="top" align="center">95.52</td>
<td valign="top" align="center">87.50</td>
<td valign="top" align="center">77.78</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s3c"><label>3.3</label><title>SHAP value explanation of model results</title>
<p>For each machine learning model, a sample with persistent pain and a sample without persistent pain were randomly selected for analysis. The <italic>x</italic>-axis represents the direction of the change in the prediction value, with movement to the left indicating a negative influence and movement to the right indicating a positive influence. In <xref ref-type="fig" rid="F2">Figure&#x00A0;2A</xref>, an age of 46 and CRP (C-Reactive Protein) level of 6.91 had a strong negative impact on the likelihood of persistent pain (&#x2212;2.3 and &#x2212;1.88, respectively), while certain lumbar segments and joint degeneration had a positive impact. The final expected prediction value was &#x2212;2.99, indicating that the model predicts this patient is more likely not to experience persistent pain. In <xref ref-type="fig" rid="F2">Figure&#x00A0;2B</xref>, a history of lumbar spine trauma (value of 1) and herniation calcification (value of 1) had a large positive impact on the prediction, significantly increasing the likelihood of persistent pain, with contributions of &#x002B;4.68 and &#x002B;3.3, respectively. Additionally, higher ESR (18.8) and WBC (7.56) levels had a negative impact on the prediction, reducing the risk of persistent pain.</p>
<fig id="F2" position="float"><label>Figure 2</label>
<caption><p>Model interpretation based on SHAP values. <bold>(A)</bold> A sample predicted by the XGBoost model not to experience persistent pain. <bold>(B)</bold> A sample predicted by the XGBoost model to experience persistent pain. <bold>(C)</bold> A sample predicted by the MLP model not to experience persistent pain. <bold>(D)</bold> A sample predicted by the MLP model to experience persistent pain.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="fsurg-12-1631651-g002.tif"><alt-text content-type="machine-generated">Panel A shows a waterfall chart with patient features affecting a prediction score. Age decreases the prediction significantly, while lumbar segments slightly increase it. Panel B displays another waterfall chart where lumbar spine trauma and spondylolisthesis increase the prediction. Panels C and D depict bar charts of SHAP values, illustrating the impact of various medical features on two classes. Panel C shows more negative SHAP values for Class 0 while Panel D shows prominent positive SHAP for lumbar segments in Class 1.</alt-text>
</graphic>
</fig>
<p>In the MLP visualization results, in <xref ref-type="fig" rid="F2">Figure&#x00A0;2C</xref>, for patients without persistent pain, herniation calcification and no history of lumbar spine trauma had a strong negative impact on the prediction. For patients with persistent pain, lumbar segment L5.S1 and herniation calcification had a significant positive impact on the prediction. In <xref ref-type="fig" rid="F2">Figure&#x00A0;2D</xref>, a history of lumbar spine trauma had a strong positive impact on the prediction of persistent pain, while it showed a negative impact on the prediction of non-persistent pain, indicating that patients with a history of lumbar spine trauma are more likely to be predicted to experience persistent pain. Additionally, younger age also played a negative role in predicting the absence of persistent pain.</p>
<p>The feature value analysis for all samples in <xref ref-type="fig" rid="F3">Figure&#x00A0;3A</xref> shows that the <italic>x</italic>-axis represents SHAP values, indicating the direction and magnitude of each feature&#x0027;s impact on the prediction. The color gradient from purple to yellow represents the change in feature values from low to high. In the figure, a history of lumbar spine trauma (yellow for high values) and older age have a significant positive impact on the risk of persistent pain, indicating that higher values for these features increase the risk of persistent pain. High values for inflammatory indicators (e.g., CRP, ESR, and WBC) also have varying degrees of impact on the prediction. The MLP model results indicate that a history of lumbar spine trauma and herniation calcification are the most important features affecting the prediction outcome, contributing the most to the prediction of persistent pain, followed by spondylolisthesis, ESR, Pfirrmann Grading, and CRP (<xref ref-type="fig" rid="F3">Figure&#x00A0;3B</xref>). We summarized the SHAP visualization results of the XGBoost and MLP models in <xref ref-type="sec" rid="s12">Supplementary Table S2</xref> to enhance clarity and interpretability. We also conducted visualization analysis in the external validation cohort, and the results showed that the feature rankings in the external validation set were similar to those in the training set, especially the top three most important features remained consistent. This further supports the stability and generalizability of the model (<xref ref-type="sec" rid="s12">Supplementary Figure S1</xref>).</p>
<fig id="F3" position="float"><label>Figure 3</label>
<caption><p>Visualization of feature importance and contribution to persistent pain risk based on <bold>(A)</bold> XGBoost and <bold>(B)</bold> MLP models.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="fsurg-12-1631651-g003.tif"><alt-text content-type="machine-generated">Panel A shows a scatter plot of SHAP values for features related to lumbar spine conditions, with color indicating feature value from low (purple) to high (yellow). Panel B displays a bar chart of feature importance, highlighting history of lumbar spine trauma and herniation calcification as most influential.</alt-text>
</graphic>
</fig>
</sec>
<sec id="s3d"><label>3.4</label><title>Construction and validation of the risk model</title>
<p>We constructed a risk model to predict the likelihood of persistent pain based on the top three important features from these two machine learning models, and validated it in an external validation set. The results showed an AUC value of 0.798, indicating that the model has good predictive capability (<xref ref-type="fig" rid="F4">Figure&#x00A0;4</xref>) (<xref ref-type="table" rid="T2">Table&#x00A0;2</xref>).</p>
<fig id="F4" position="float"><label>Figure 4</label>
<caption><p>ROC curve for risk Index in external validation set.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="fsurg-12-1631651-g004.tif"><alt-text content-type="machine-generated">ROC curve for Risk Index with an orange stepped line indicating performance. The x-axis represents 1 - Specificity (False Positive Rate), and the y-axis represents Sensitivity (True Positive Rate). The curve shows a positive trend, deviating from the diagonal dashed line of no discrimination.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec id="s4" sec-type="discussion"><label>4</label><title>Discussion</title>
<p>This study is the first to apply machine learning techniques to identify multiple key risk factors for persistent pain following PTED surgery and successfully develop a machine learning-based risk prediction model to estimate the likelihood of persistent pain in patients. The findings highlight that a history of lumbar spine trauma and herniation calcification were the most influential features in both the XGBoost and MLP models, exhibiting significant positive effects on the risk prediction for persistent pain. These results suggest that anatomical changes and prior injury history may play crucial roles in the persistence of postoperative pain, while age and inflammatory status also appear to be important predictors.</p>
<p>We employed four machine learning models&#x2014;Logistic Regression, Support Vector Machine, XGBoost, and Multilayer Perceptron&#x2014;to compare their performance in predicting postoperative persistent pain and to identify the optimal model. These models captured the multi-level relationships between features and pain risk, with nonlinear models such as XGBoost and MLP demonstrating particular strength in uncovering complex feature interactions. Moreover, utilizing multiple models enhanced the stability and robustness of the predictions, minimizing potential biases inherent to any single model. Through SHAP value analysis of feature importance, this study offers clinicians valuable data-driven insights into the key factors influencing pain risk, thereby supporting more personalized treatment decisions.</p>
<p>Our study found a significant association between a history of lumbar spine trauma and the occurrence of persistent postoperative pain. Previous research has suggested that prior lumbar injuries may lead to structural and functional alterations in local nerves, muscles, and soft tissues, resulting in a sustained state of hypersensitivity (<xref ref-type="bibr" rid="B17">17</xref>). This heightened sensitivity makes these areas more susceptible to surgical stimulation and may lead to more pronounced postoperative pain responses (<xref ref-type="bibr" rid="B18">18</xref>, <xref ref-type="bibr" rid="B19">19</xref>). Additionally, compensatory movement patterns and muscular imbalances developed after trauma may persist even after apparent recovery, potentially affecting spinal biomechanics and interfering with postoperative rehabilitation, thereby exacerbating the pain experience. Psychological studies have also indicated that individuals with a history of trauma are more prone to anxiety, depression, and other negative emotional states, which are closely linked to the development of postoperative pain (<xref ref-type="bibr" rid="B20">20</xref>, <xref ref-type="bibr" rid="B21">21</xref>). These psychological factors may amplify pain perception through central sensitization mechanisms. Therefore, lumbar trauma may contribute to persistent postoperative pain through both physiological and psychological pathways.</p>
<p>Herniation calcification has a significant impact on postoperative pain, possibly because calcification hardens the protruding disc, increasing its pressure and friction on surrounding tissues (such as nerve roots, ligaments, and muscles) (<xref ref-type="bibr" rid="B22">22</xref>). Calcified tissue is challenging to remove during surgery, increasing the risk of damage to surrounding nerves and tissues, thereby intensifying postoperative pain (<xref ref-type="bibr" rid="B23">23</xref>). Calcification complicates surgical manipulation, particularly in PTED, as the hardness of the calcified disc limits the maneuverability of surgical instruments, making it difficult for surgeons to completely remove the herniated portion. Residual calcified tissue may continue to exert nerve compression postoperatively, resulting in persistent pain. Moreover, calcified disc tissue can provoke a more intense inflammatory response, which may delay tissue healing and contribute to chronic inflammation. This inflammation activates pain transmission pathways, heightening the patient&#x0027;s pain perception and prolonging the duration of postoperative pain. Elevated levels of CRP and ESR reflect a low-grade chronic inflammation within the patient&#x0027;s body (<xref ref-type="bibr" rid="B24">24</xref>). Intraoperative stimuli may promote the release of inflammatory mediators, thereby exacerbating tissue damage, inducing postoperative neural sensitization, and leading to postoperative edema, exudation, or adhesions, which cause persistent postoperative pain. Moreover, at higher CRP and ESR levels, the ability of soft tissue repair after surgery is reduced, making scar tissue formation more likely and aggravating postoperative discomfort.</p>
<p>The AUC value of our risk model was 0.798, indicating that this simplified model has good predictive ability and can be used as a quick assessment tool in clinical settings. In the future, it could be implemented as a mobile application, a risk prediction calculator, or integrated into electronic health record (EHR) systems, allowing clinicians to rapidly assess the risk of persistent postoperative pain before surgery. By identifying high-risk patients in advance, clinicians can optimize preoperative preparation and adjust treatment strategies accordingly, thereby improving surgical safety and patient outcomes.</p>
<p>However, this study has some limitations. The sample size is limited, which may restrict the model&#x0027;s generalizability. Future studies could expand the sample size to improve the model&#x0027;s stability and applicability across different populations. Persistent pain is a subjective experience, and there is currently a lack of a unified and widely accepted standard for its definition. Therefore, the generalizability of our study may be limited. Future research could incorporate more objective indicators to improve the assessment system for persistent pain and enhance the general applicability and clinical relevance of the findings.</p>
</sec>
<sec id="s5" sec-type="conclusions"><label>5</label><title>Conclusion</title>
<p>This study identified several factors&#x2014;including age, history of lumbar spine trauma, disease duration, and herniation calcification&#x2014;that significantly increase the risk of persistent pain after PTED. The XGBoost and MLP models, built using these key factors, demonstrated excellent performance in predicting postoperative pain while offering strong interpretability. SHAP analysis highlighted lumbar spine trauma history and herniation calcification as the most influential predictors. The resulting risk prediction model aids in the preoperative identification of high-risk patients and supports the development of personalized intervention strategies.</p>
</sec>
</body>
<back>
<sec id="s6" sec-type="data-availability"><title>Data availability statement</title>
<p>The original contributions presented in the study are included in the article/<xref ref-type="sec" rid="s12">Supplementary Material</xref>, further inquiries can be directed to the corresponding author.</p>
</sec>
<sec id="s7" sec-type="ethics-statement"><title>Ethics statement</title>
<p>This research project has been approved by Ethics Committee of Hubei Maternal and Child Health Hospital Affiliated to Tongji Medical College, Huazhong University of Science and Technology and operated in strict accordance with ethical standards. In this study, we respect and protect the rights and privacy of participants and ensure the confidentiality of their personal information.
<list list-type="simple">
<list-item><label>1.</label>
<p>Participants&#x2019; informed consent: We explained the purpose, process, risks and benefits of the study to all individuals involved in the study orally or in writing, and obtained their informed consent. Participants have the right to know that their participation is voluntary and can withdraw from the study at any time.</p></list-item>
<list-item><label>2.</label>
<p>Data confidentiality and privacy protection: We have taken appropriate measures to protect the privacy of participants&#x2019; personal information. We will not disclose or disclose any personal information that may lead to the identification of participants. In the research report, we will treat the participants&#x2019; information anonymously.</p></list-item>
<list-item><label>3.</label>
<p>Assessment and management of potential risks: We assessed the potential risks that may be involved in the study during the project design stage and took appropriate measures to reduce or manage these risks. We guarantee that participants will not suffer any physical or psychological harm because of participating in the study.</p></list-item>
<list-item><label>4.</label>
<p>Research data use: We will strictly abide by the principles of legality and transparency in data use to ensure the correct use and interpretation of research data. We will try our best to avoid data misunderstanding and abuse, and only use the data for research purposes.</p></list-item>
</list>The purpose of this statement is to ensure the ethical compliance of research projects and protect the rights and privacy of participants. If you have any further questions or doubts, please feel free to contact us.</p>
</sec>
<sec id="s8" sec-type="author-contributions"><title>Author contributions</title>
<p>JY: Conceptualization, Data curation, Formal analysis, Funding acquisition, Methodology, Software, Writing &#x2013; original draft. JF: Investigation, Project administration, Resources, Supervision, Validation, Visualization, Writing &#x2013; review &#x0026; editing.</p>
</sec>
<sec id="s9" sec-type="funding-information"><title>Funding</title>
<p>The author(s) declare that no financial support was received for the research and/or publication of this article.</p>
</sec>
<sec id="s10" sec-type="COI-statement"><title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec id="s11" sec-type="ai-statement"><title>Generative AI statement</title>
<p>The author(s) declare that no Generative AI was used in the creation of this manuscript.</p>
</sec>
<sec id="s13" sec-type="disclaimer"><title>Publisher&#x0027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<sec id="s12" sec-type="supplementary-material"><title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="https://www.frontiersin.org/articles/10.3389/fsurg.2025.1631651/full#supplementary-material">https://www.frontiersin.org/articles/10.3389/fsurg.2025.1631651/full&#x0023;supplementary-material</ext-link></p>
<supplementary-material id="SD1" content-type="local-data"><label>Supplementary Figure S1</label>
<caption><p>Visualization of feature importance and contribution for persistent pain risk in the external validation cohort based on <bold>(A)</bold> XGBoost and <bold>(B)</bold> MLP models.</p></caption>
<media mimetype="application" mime-subtype="vnd.openxmlformats-officedocument.wordprocessingml.document" xlink:href="Table1.docx"/></supplementary-material>
<supplementary-material id="SD2" content-type="local-data">
<media mimetype="application" mime-subtype="vnd.openxmlformats-officedocument.wordprocessingml.document" xlink:href="Table2.docx"/></supplementary-material>
<supplementary-material id="SD3" content-type="local-data">
<media mimetype="image" mime-subtype="png" xlink:href="Image1.png"/></supplementary-material>
</sec>
<ref-list><title>References</title>
<ref id="B1"><label>1.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pan</surname><given-names>M</given-names></name><name><surname>Li</surname><given-names>Q</given-names></name><name><surname>Li</surname><given-names>S</given-names></name><name><surname>Mao</surname><given-names>H</given-names></name><name><surname>Meng</surname><given-names>B</given-names></name><name><surname>Zhou</surname><given-names>F</given-names></name><etal/></person-group> <article-title>Percutaneous endoscopic lumbar discectomy: indications and complications</article-title>. <source>Pain Physician</source>. (<year>2020</year>) <volume>23</volume>(<issue>1</issue>):<fpage>49</fpage>&#x2013;<lpage>56</lpage>.<pub-id pub-id-type="pmid">32013278</pub-id></citation></ref>
<ref id="B2"><label>2.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname><given-names>AS</given-names></name><name><surname>Xu</surname><given-names>A</given-names></name><name><surname>Ansari</surname><given-names>K</given-names></name><name><surname>Hardacker</surname><given-names>K</given-names></name><name><surname>Anderson</surname><given-names>G</given-names></name><name><surname>Alsoof</surname><given-names>D</given-names></name><etal/></person-group> <article-title>Lumbar disc herniation: diagnosis and management</article-title>. <source>Am J Med</source>. (<year>2023</year>) <volume>136</volume>(<issue>7</issue>):<fpage>645</fpage>&#x2013;<lpage>51</lpage>. <pub-id pub-id-type="doi">10.1016/j.amjmed.2023.03.024</pub-id><pub-id pub-id-type="pmid">37072094</pub-id></citation></ref>
<ref id="B3"><label>3.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kreiner</surname><given-names>DS</given-names></name><name><surname>Hwang</surname><given-names>SW</given-names></name><name><surname>Easa</surname><given-names>JE</given-names></name><name><surname>Resnick</surname><given-names>DK</given-names></name><name><surname>Baisden</surname><given-names>JL</given-names></name><name><surname>Bess</surname><given-names>S</given-names></name><etal/></person-group> <article-title>An evidence-based clinical guideline for the diagnosis and treatment of lumbar disc herniation with radiculopathy</article-title>. <source>Spine J</source>. (<year>2014</year>) <volume>14</volume>(<issue>1</issue>):<fpage>180</fpage>&#x2013;<lpage>91</lpage>. <pub-id pub-id-type="doi">10.1016/j.spinee.2013.08.003</pub-id><pub-id pub-id-type="pmid">24239490</pub-id></citation></ref>
<ref id="B4"><label>4.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname><given-names>J</given-names></name><name><surname>Gao</surname><given-names>Y</given-names></name><name><surname>Zhao</surname><given-names>B</given-names></name><name><surname>Li</surname><given-names>H</given-names></name><name><surname>Hou</surname><given-names>X</given-names></name><name><surname>Yin</surname><given-names>L</given-names></name></person-group>. <article-title>Comparison of percutaneous transforaminal endoscopic discectomy and open lumbar discectomy for lumbar disc herniations: a systematic review and meta-analysis</article-title>. <source>Front Surg</source>. (<year>2022</year>) <volume>9</volume>:<fpage>984868</fpage>. <pub-id pub-id-type="doi">10.3389/fsurg.2022.984868</pub-id><pub-id pub-id-type="pmid">36439526</pub-id></citation></ref>
<ref id="B5"><label>5.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ahn</surname><given-names>Y</given-names></name></person-group>. <article-title>Endoscopic spine discectomy: indications and outcomes</article-title>. <source>Int Orthop</source>. (<year>2019</year>) <volume>43</volume>(<issue>4</issue>):<fpage>909</fpage>&#x2013;<lpage>16</lpage>. <pub-id pub-id-type="doi">10.1007/s00264-018-04283-w</pub-id><pub-id pub-id-type="pmid">30612170</pub-id></citation></ref>
<ref id="B6"><label>6.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gadjradj</surname><given-names>PS</given-names></name><name><surname>Harhangi</surname><given-names>BS</given-names></name><name><surname>Amelink</surname><given-names>J</given-names></name><name><surname>van Susante</surname><given-names>J</given-names></name><name><surname>Kamper</surname><given-names>S</given-names></name><name><surname>van Tulder</surname><given-names>M</given-names></name><etal/></person-group> <article-title>Percutaneous transforaminal endoscopic discectomy versus open microdiscectomy for lumbar disc herniation: a systematic review and meta-analysis</article-title>. <source>Spine</source>. (<year>2021</year>) <volume>46</volume>(<issue>8</issue>):<fpage>538</fpage>&#x2013;<lpage>49</lpage>. <pub-id pub-id-type="doi">10.1097/brs.0000000000003843</pub-id><pub-id pub-id-type="pmid">33290374</pub-id></citation></ref>
<ref id="B7"><label>7.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yu</surname><given-names>P</given-names></name><name><surname>Zan</surname><given-names>P</given-names></name><name><surname>Zhang</surname><given-names>X</given-names></name><name><surname>Qiang</surname><given-names>H</given-names></name><name><surname>Samsonraj</surname><given-names>RM</given-names></name><name><surname>Tang</surname><given-names>J</given-names></name><etal/></person-group> <article-title>Comparison of percutaneous transforaminal endoscopic discectomy and microendoscopic discectomy for the surgical management of symptomatic lumbar disc herniation: a multicenter retrospective cohort study with a minimum of 2 Years&#x2019; follow-up</article-title>. <source>Pain Physician</source>. (<year>2021</year>) <volume>24</volume>(<issue>1</issue>):<fpage>E117</fpage>&#x2013;<lpage>e125</lpage>.<pub-id pub-id-type="pmid">33400445</pub-id></citation></ref>
<ref id="B8"><label>8.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Duan</surname><given-names>L</given-names></name><name><surname>Zhang</surname><given-names>J-Y</given-names></name><name><surname>Zhang</surname><given-names>J-H</given-names></name><name><surname>Kang</surname><given-names>J-Y</given-names></name><name><surname>Zhou</surname><given-names>H-C</given-names></name></person-group>. <article-title>Effect of intradiscal local anesthetic injection on intraoperative pain during percutaneous transforaminal endoscopic discectomy: a retrospective study</article-title>. <source>Asian J Surg</source>. (<year>2023</year>) <volume>46</volume>(<issue>7</issue>):<fpage>2682</fpage>&#x2013;<lpage>8</lpage>. <pub-id pub-id-type="doi">10.1016/j.asjsur.2022.09.153</pub-id><pub-id pub-id-type="pmid">36283878</pub-id></citation></ref>
<ref id="B9"><label>9.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Handelman</surname><given-names>GS</given-names></name><name><surname>Kok</surname><given-names>HK</given-names></name><name><surname>Chandra</surname><given-names>RV</given-names></name><name><surname>Razavi</surname><given-names>AH</given-names></name><name><surname>Lee</surname><given-names>MJ</given-names></name><name><surname>Asadi</surname><given-names>H</given-names></name></person-group>. <article-title>Edoctor: machine learning and the future of medicine</article-title>. <source>J Intern Med</source>. (<year>2018</year>) <volume>284</volume>(<issue>6</issue>):<fpage>603</fpage>&#x2013;<lpage>19</lpage>. <pub-id pub-id-type="doi">10.1111/joim.12822</pub-id><pub-id pub-id-type="pmid">30102808</pub-id></citation></ref>
<ref id="B10"><label>10.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pruneski</surname><given-names>JA</given-names></name><name><surname>Pareek</surname><given-names>A</given-names></name><name><surname>Kunze</surname><given-names>KN</given-names></name><name><surname>Martin</surname><given-names>RK</given-names></name><name><surname>Karlsson</surname><given-names>J</given-names></name><name><surname>Oeding</surname><given-names>JF</given-names></name><etal/></person-group> <article-title>Supervised machine learning and associated algorithms: applications in orthopedic surgery</article-title>. <source>Knee Surg Sports Traumatol Arthrosc</source>. (<year>2023</year>) <volume>31</volume>(<issue>4</issue>):<fpage>1196</fpage>&#x2013;<lpage>202</lpage>. <pub-id pub-id-type="doi">10.1007/s00167-022-07181-2</pub-id><pub-id pub-id-type="pmid">36222893</pub-id></citation></ref>
<ref id="B11"><label>11.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Valkenborg</surname><given-names>D</given-names></name><name><surname>Rousseau</surname><given-names>A-J</given-names></name><name><surname>Geubbelmans</surname><given-names>M</given-names></name><name><surname>Burzykowski</surname><given-names>T</given-names></name></person-group>. <article-title>Support vector machines</article-title>. <source>Am J Orthod Dentofacial Orthop</source>. (<year>2023</year>) <volume>164</volume>(<issue>5</issue>):<fpage>754</fpage>&#x2013;<lpage>7</lpage>. <pub-id pub-id-type="doi">10.1016/j.ajodo.2023.08.003</pub-id><pub-id pub-id-type="pmid">37914440</pub-id></citation></ref>
<ref id="B12"><label>12.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sch&#x00F6;nnagel</surname><given-names>L</given-names></name><name><surname>Caffard</surname><given-names>T</given-names></name><name><surname>Vu-Han</surname><given-names>T-L</given-names></name><name><surname>Zhu</surname><given-names>J</given-names></name><name><surname>Nathoo</surname><given-names>I</given-names></name><name><surname>Finos</surname><given-names>K</given-names></name><etal/></person-group> <article-title>Predicting postoperative outcomes in lumbar spinal fusion: development of a machine learning model</article-title>. <source>Spine J</source>. (<year>2024</year>) <volume>24</volume>(<issue>2</issue>):<fpage>239</fpage>&#x2013;<lpage>49</lpage>. <pub-id pub-id-type="doi">10.1016/j.spinee.2023.09.029</pub-id></citation></ref>
<ref id="B13"><label>13.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Alkadri</surname><given-names>S</given-names></name><name><surname>Ledwos</surname><given-names>N</given-names></name><name><surname>Mirchi</surname><given-names>N</given-names></name><name><surname>Reich</surname><given-names>A</given-names></name><name><surname>Yilmaz</surname><given-names>R</given-names></name><name><surname>Driscoll</surname><given-names>M</given-names></name><etal/></person-group> <article-title>Utilizing a multilayer perceptron artificial neural network to assess a virtual reality surgical procedure</article-title>. <source>Comput Biol Med</source>. (<year>2021</year>) <volume>136</volume>:<fpage>104770</fpage>. <pub-id pub-id-type="doi">10.1016/j.compbiomed.2021.104770</pub-id><pub-id pub-id-type="pmid">34426170</pub-id></citation></ref>
<ref id="B14"><label>14.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname><given-names>YXJ</given-names></name></person-group>. <article-title>Several concerns on grading lumbar disc degeneration on MR image with Pfirrmann criteria</article-title>. <source>J Orthop Translat</source>. (<year>2022</year>) <volume>32</volume>:<fpage>101</fpage>&#x2013;<lpage>2</lpage>. <pub-id pub-id-type="doi">10.1016/j.jot.2021.12.003</pub-id><pub-id pub-id-type="pmid">35228991</pub-id></citation></ref>
<ref id="B15"><label>15.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ali</surname><given-names>S</given-names></name><name><surname>Akhlaq</surname><given-names>F</given-names></name><name><surname>Imran</surname><given-names>AS</given-names></name><name><surname>Kastrati</surname><given-names>Z</given-names></name><name><surname>Daudpota</surname><given-names>SM</given-names></name><name><surname>Moosa</surname><given-names>M</given-names></name></person-group>. <article-title>The enlightening role of explainable artificial intelligence in medical &#x0026; healthcare domains: a systematic literature review</article-title>. <source>Comput Biol Med</source>. (<year>2023</year>) <volume>166</volume>:<fpage>107555</fpage>. <pub-id pub-id-type="doi">10.1016/j.compbiomed.2023.107555</pub-id><pub-id pub-id-type="pmid">37806061</pub-id></citation></ref>
<ref id="B16"><label>16.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname><given-names>Z</given-names></name><name><surname>Zhao</surname><given-names>Y</given-names></name><name><surname>Canes</surname><given-names>A</given-names></name><name><surname>Steinberg</surname><given-names>D</given-names></name><name><surname>Lyashevska</surname><given-names>O</given-names></name></person-group>. <article-title>Predictive analytics with gradient boosting in clinical medicine</article-title>. <source>Ann Transl Med</source>. (<year>2019</year>) <volume>7</volume>(<issue>7</issue>):<fpage>152</fpage>. <pub-id pub-id-type="doi">10.21037/atm.2019.03.29</pub-id><pub-id pub-id-type="pmid">31157273</pub-id></citation></ref>
<ref id="B17"><label>17.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Idlett-Ali</surname><given-names>S</given-names></name><name><surname>Kloefkorn</surname><given-names>H</given-names></name><name><surname>Goolsby</surname><given-names>W</given-names></name><name><surname>Hochman</surname><given-names>S</given-names></name></person-group>. <article-title>Relating spinal injury-induced neuropathic pain and spontaneous afferent activity to sleep and respiratory dysfunction</article-title>. <source>J Neurotrauma</source>. (<year>2023</year>) <volume>40</volume>(<issue>23-24</issue>):<fpage>2654</fpage>&#x2013;<lpage>66</lpage>. <pub-id pub-id-type="doi">10.1089/neu.2022.0305</pub-id><pub-id pub-id-type="pmid">37212274</pub-id></citation></ref>
<ref id="B18"><label>18.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Liu</surname><given-names>P</given-names></name><name><surname>Song</surname><given-names>C</given-names></name><name><surname>Wang</surname><given-names>C</given-names></name><name><surname>Li</surname><given-names>Y</given-names></name><name><surname>Su</surname><given-names>L</given-names></name><name><surname>Li</surname><given-names>J</given-names></name><etal/></person-group> <article-title>Spinal SNAP-25 regulates membrane trafficking of GluA1-containing AMPA receptors in spinal injury-induced neuropathic pain in rats</article-title>. <source>Neurosci Lett</source>. (<year>2020</year>) <volume>715</volume>:<fpage>134616</fpage>. <pub-id pub-id-type="doi">10.1016/j.neulet.2019.134616</pub-id><pub-id pub-id-type="pmid">31705923</pub-id></citation></ref>
<ref id="B19"><label>19.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rekand</surname><given-names>T</given-names></name><name><surname>Hagen</surname><given-names>EM</given-names></name><name><surname>Gr&#x00F8;nning</surname><given-names>M</given-names></name></person-group>. <article-title>Chronic pain following spinal cord injury</article-title>. <source>Tidsskr Nor Laegeforen</source>. (<year>2012</year>) <volume>132</volume>(<issue>8</issue>):<fpage>974</fpage>&#x2013;<lpage>9</lpage>. <pub-id pub-id-type="doi">10.4045/tidsskr.11.0794</pub-id><pub-id pub-id-type="pmid">22562333</pub-id></citation></ref>
<ref id="B20"><label>20.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Yang</surname><given-names>Y</given-names></name><name><surname>Tang</surname><given-names>T-t</given-names></name><name><surname>Chen</surname><given-names>M-R</given-names></name><name><surname>Xiang</surname><given-names>M-Y</given-names></name><name><surname>Li</surname><given-names>L-L</given-names></name><name><surname>Hou</surname><given-names>X-L</given-names></name></person-group>. <article-title>Prevalence and association of anxiety and depression among orthopaedic trauma inpatients: a retrospective analysis of 1994 cases</article-title>. <source>J Orthop Surg Res</source>. (<year>2020</year>) <volume>15</volume>(<issue>1</issue>):<fpage>587</fpage>. <pub-id pub-id-type="doi">10.1186/s13018-020-02132-4</pub-id><pub-id pub-id-type="pmid">33287842</pub-id></citation></ref>
<ref id="B21"><label>21.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nicholson</surname><given-names>V</given-names></name><name><surname>Cole</surname><given-names>E</given-names></name><name><surname>Christie</surname><given-names>R</given-names></name></person-group>. <article-title>Factors associated with anxiety and depression one year after trauma critical care admission: a multi-centre study</article-title>. <source>Injury</source>. (<year>2025</year>) <volume>56</volume>(<issue>5</issue>):<fpage>112080</fpage>. <pub-id pub-id-type="doi">10.1016/j.injury.2024.112080</pub-id><pub-id pub-id-type="pmid">39709255</pub-id></citation></ref>
<ref id="B22"><label>22.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhou</surname><given-names>G</given-names></name><name><surname>Liang</surname><given-names>Z</given-names></name><name><surname>Gao</surname><given-names>F</given-names></name><name><surname>Zhao</surname><given-names>L</given-names></name><name><surname>Gao</surname><given-names>H</given-names></name><name><surname>Xiao</surname><given-names>G</given-names></name><etal/></person-group> <article-title>Percutaneous endoscopic lumbar discectomy for calcified lumbar disc herniation: a retrospective cohort study, systematic review and meta-analysis</article-title>. <source>Pain Physician</source>. (<year>2024</year>) <volume>27</volume>(<issue>1</issue>):<fpage>E1</fpage>&#x2013;<lpage>e15</lpage>.<pub-id pub-id-type="pmid">38285024</pub-id></citation></ref>
<ref id="B23"><label>23.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gao</surname><given-names>S</given-names></name><name><surname>Wei</surname><given-names>J</given-names></name><name><surname>Li</surname><given-names>W</given-names></name><name><surname>Zhang</surname><given-names>L</given-names></name><name><surname>Cao</surname><given-names>C</given-names></name><name><surname>Zhai</surname><given-names>J</given-names></name><etal/></person-group> <article-title>Full-endoscopic transforaminal ventral decompression for symptomatic thoracic disc herniation with or without calcification: technical notes and case series</article-title>. <source>Pain Res Manag</source>. (<year>2021</year>) <volume>2021</volume>:<fpage>6454760</fpage>. <pub-id pub-id-type="doi">10.1155/2021/6454760</pub-id><pub-id pub-id-type="pmid">34777672</pub-id></citation></ref>
<ref id="B24"><label>24.</label><citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname><given-names>X</given-names></name><name><surname>Ida</surname><given-names>M</given-names></name><name><surname>Uyama</surname><given-names>K</given-names></name><name><surname>Naito</surname><given-names>Y</given-names></name><name><surname>Kawaguchi</surname><given-names>M</given-names></name></person-group>. <article-title>Persistent postoperative pain at 1 year after orthopedic surgery and its association with functional disability</article-title>. <source>J Anesth</source>. (<year>2023</year>) <volume>37</volume>(<issue>2</issue>):<fpage>248</fpage>&#x2013;<lpage>53</lpage>. <pub-id pub-id-type="doi">10.1007/s00540-022-03156-2</pub-id><pub-id pub-id-type="pmid">36565365</pub-id></citation></ref></ref-list>
</back>
</article>