Research Article

The Prediction of Recurrence of Lumbar Disc Herniation at L5-S1 through Machine Learning Based on Endoscopic Discectomy via the Interlaminar Approach

902 views

DOI:

10.3791/68550

July 11th, 2025

 ,  ,  ,  , 

Corresponding Authors: Zhiming Cui <czmspine@ntu.edu.cn>, Jiajia Chen <ntspine@ntu.edu.cn>

In This Article

Summary

Machine learning models were developed to predict L5-S1 disc herniation recurrence after PEID surgery, analyzing data from 309 patients. Key predictors included BMI and PDHI, with random forest and extreme gradient boosting models showing the best performance.

Abstract

This study aimed to develop machine learning (ML) models to predict the L5-S1 level recurrent lumbar disc herniation (rLDH) after percutaneous endoscopic interlaminar discectomy (PEID), a minimally invasive treatment for L5-S1 lumbar disc herniation. Data from 309 patients who underwent single-level L5-S1 PEID between January 2020 and June 2024, with at least 6 months of follow-up, were analyzed. Clinical records, preoperative imaging, and visual analog scale (VAS) scores were used. LASSO regression identified key predictors, and six ML models were built: support vector machine (SVM), decision tree (DT), adaptive boosting (ADA), light gradient boosting machine (LGBM), random forest (RF), and extreme gradient boosting (XGB). Among the patients, 10.7% experienced rLDH, defined as ≥60% VAS reduction followed by symptom recurrence and imaging confirmation. Key predictors included Body Mass Index (BMI), posterior disc height index (PDHI), spinal canal stenosis, disease duration, numbness or weakness, Modic changes, herniation type, and diabetes. The RF and XGB models performed best. Higher BMI, Higher PDHI, spinal canal stenosis, disease duration over six months, Modic changes, non-contained herniation, and diabetes increased rLDH risk. Variable importance was ranked for both models. Predicting rLDH preoperatively can enhance decision-making and reduce recurrence risk after PEID, with ML models improving accuracy and identifying critical risk factors.

Introduction

Percutaneous endoscopic lumbar discectomy (PELD) encompasses various techniques, such as percutaneous endoscopic transforaminal discectomy (PETD) and percutaneous endoscopic interlaminar discectomy (PEID), with the choice of surgical approach depending on the lesion location and individual anatomical characteristics of the patient1. Recurrent lumbar disc herniation (rLDH) is one of the most common reasons for reoperation following PELD, with an incidence ranging from 0% to 12.5%2,3. As a minimally invasive technique, PEID has been widely applied in the treatment of lumbar conditions such as L5-S1 level disc herniation. Its advantages, including minimal trauma, short hospital stays, and rapid postoperative recovery, have made it highly favored by both clinicians and patients4. However, despite the significant benefits of endoscopic techniques in reducing surgical trauma and promoting quick recovery, some patients still face the issue of recurrent disc herniation post-surgery5.

The recurrence of lumbar disc herniation is closely associated with multiple factors, including the degree of disc degeneration, posterior disc height, Modic changes (endplate inflammation), and areas in close contact with the endplate6. Additionally, BMI has a significant impact on postoperative recovery, with studies indicating that patients with higher BMI typically face a greater risk of recurrence5. The intervertebral disc height index, as an important indicator for assessing the degree of disc degeneration, has been widely used. It is defined as the height of the anterior and posterior disc margins divided by the centroid distance of the two vertebral bodies. However, for disc herniation and postoperative recurrence, due to the stress distribution at the anterior and posterior margins, the posterior disc height index is more critical in predicting rLDH7. Incomplete removal of the nucleus pulposus during surgery is one of the primary causes of residual postoperative symptoms, as some disc tissue is challenging to completely excise during the procedure8. Modic changes lead to endplate damage and inflammatory responses, resulting in mechanical instability. The nucleus pulposus and cartilage components in non-contained disc herniations may exacerbate degeneration of the endplate and intervertebral disc8,9. Spinal canal stenosis is associated with the incidence of rLDH, particularly in patients undergoing simple decompression surgery without fusion10. Furthermore, unhealthy lifestyle habits, cardiovascular diseases, and metabolic disorders such as diabetes significantly prolong disc healing time, increasing the risk of recurrence and pain11,12. Therefore, the first objective of this study is to further investigate the risk factors associated with rLDH following PEID at the L5-S1 segment.

In recent years, advancements in artificial intelligence (AI) and machine learning technologies have opened new possibilities for medical analysis. The application of AI and machine learning in spine-related research has significantly increased13,14. As the lowest lumbar segment bearing the greatest upper body weight and possessing unique biomechanical properties, L5-S1 is a common site for lumbar disc herniation. Based on the patient's lumbar MRI T2 sequence (due to its high sensitivity for intervertebral disc imaging, serving as the most critical evaluation tool), combined with CT and X-ray examinations, more pathophysiological information about the patient's intervertebral discs can be obtained, leading to a clearer understanding of rLDH15. In clinical practice, accurately predicting postoperative recurrence risk factors, considering the unique anatomical structure of the L5-S1 region and various potential complications, remains a significant challenge16,17.

Machine learning has been widely applied in the medical field, with algorithms such as Random Forest and Gradient Boosting playing a significant role in disease prediction and risk assessment18. LASSO regression, through its L1 regularization mechanism for variable selection and coefficient shrinkage, is used to address feature selection and overfitting issues in high-dimensional data19. The grid search algorithm comprehensively explores the hyperparameter space, facilitating the identification of the optimal hyperparameter combination for each model, thereby enhancing prediction capability and stability20. In this context, machine learning algorithms implemented in mainstream AI languages such as Python and R, when based on a sample size exceeding 240 cases, can be used to build artificial intelligence models21. By employing techniques like LASSO regression for variable selection and constructing models, grid search algorithms are utilized to minimize errors and maximize prediction accuracy, thus improving model stability.

In this study, by statistically analyzing and measuring various risk factors in L5-S1 patients, and integrating multidimensional data -- including clinical information (e.g., age, BMI) and imaging variables (e.g., disc height, posterior disc height index) -- aims to develop a more accurate predictive model. The second objective of this study is to assess patients' preoperative recurrence risk, evaluate model performance, and highlight the importance of various risk factors.

Protocol

This study is a retrospective analysis approved by the Institutional Ethics Committee of Nantong First People's Hospital. The trial has been registered on ClinicalTrials.gov (Registration Number: NCT06833099). As all participants' health information was anonymized, informed consent was not required. The consumables and equipment used are listed in the Table of Materials.

1. Study population

The study included clinical data and preoperative imaging records of 436 patients who underwent percutaneous endoscopic interlaminar discectomy (PEID) for low back pain and leg pain due to L5-S1 disc herniation at Nantong First People's Hospital between January 1, 2020, and June 30, 2024. Based on exclusion criteria, 309 patients were ultimately included, among whom recurrent lumbar disc herniation (rLDH) was confirmed through postoperative Visual Analog Scale (VAS) scores and follow-up imaging. Of the 309 patients, 33 experienced rLDH post-surgery, while the remaining 276 had significant relief of low back and leg pain, with VAS scores reduced by over 60%. Imaging variables for all participants were derived from preoperative X-ray, CT, and MRI examinations, combined with detailed clinical information, including gender, age, height, weight, BMI, VAS scores, and other relevant variables (Figure 1).

2. Inclusion and exclusion criteria

Inclusion criteria for rLDH: (1) Patients with L5-S1 lumbar disc herniation who underwent single-segment PEID. (2) Comprehensive imaging examinations completed within one month preoperatively. (3) Postoperative VAS score reduction ≥60%, followed by an increase in score and confirmation by imaging. (4) No other abnormalities detected on imaging. (5) Minimum follow-up period of 6 months.

Inclusion criteria for Non-rLDH: (1) Patients with L5-S1 lumbar disc herniation who underwent single-segment PEID. (2) Comprehensive imaging examinations completed within one month preoperatively. (3) Postoperative VAS score reduction ≥60%, with no recurrence. (4) No other abnormalities detected on imaging. (5) Minimum follow-up period of 6 months.

Exclusion criteria: (1) Presence of other pathological conditions causing low back pain, such as disc infection, spinal tumors, metabolic bone diseases, or osteoporosis. (2) History of lumbar disc or other spinal surgeries. (3) Poor imaging quality or incomplete examination data. (4) Loss to follow-up.

3. Categorical and continuous variables

Preoperative clinical characteristics and imaging data of patients were statistically analyzed and measured (Table 1 and Table 2). Categorical variables were used to distinguish basic disease characteristics, lifestyle factors, and other variables, while continuous variables represented specific measurements describing patients' physiological status and preoperative imaging changes. To reduce bias, strict quality control measures were implemented. Two radiologists and spine surgeons with over 10 years of clinical experience were responsible for the statistical analysis and measurement of imaging data. For complex cases, the two doctors resolved issues through joint consultation to ensure accuracy and consistency in data processing.

Categorical variables included: gender, diabetes, hypertension, cardiovascular and cerebrovascular diseases (CCD), scoliosis, spinal stenosis, triggering factors (e.g., strenuous activity, sprain, cold exposure, impact, or no clear trigger), disease duration (over 6 months or less than 6 months), numbness or weakness, protrusion type (contained or non-contained), disc degeneration (Grades I, II, III and IV, V), adjacent disc degeneration (Grades I, II, III and IV, V), Modic changes, and disc calcification.

Continuous variables included: age, surgical duration, height, weight, body mass index (BMI), maximum disc herniation diameter (MDHD), posterior disc height (PDH), distance between two vertebrae centers (DBTVC), facet joint orientation angle (FJOA), disc angle (DA), sacral slope angle (SSA), lumbar lordosis angle (LLA), and posterior disc height index (PDHI, PDHI = PDH / DBTVC).

4. Data cleaning and variable selection

First, the data file "zjkj3" was read into R (version 4.3.1, https://www.r-project.org/, Platform: x86_64-w64-mingw32/x64 (64-bit), Copyright (C) 2023 The R Foundation for Statistical Computing) using the read_excel function and stored in a data variable. The character encoding selected was UTF-8 (system default), which is a widely used encoding method capable of supporting the written languages of most countries around the world. The select function was then used to separate the target variable from the feature variables. To ensure reproducibility of the data split, a fixed random seed of 3 was set, and the dataset was divided into a training set (80%) and a test set (20%). Finally, a LASSO regression function was defined, and a portion of the training data was randomly sampled using the glmnet function to fit the LASSO regression. The optimal regularization parameter λ was determined using L1 regularization and cross-validation (default 10-fold), while ensuring no duplicate patient data was mixed between the training and test sets. The cross-validation error for each λ value was calculated to determine the optimal λ value.

5. Model development and evaluation

SVM (Support Vector Machine): This model maps training data to a hyperplane, maximizing the margin between two classes to predict the target. The specific hyperparameter settings for the SVM model in this study are: kernel = "linear", cost = 1. Supplemental Figure 1 depicts the confusion matrices for SVM.

DT (Decision Tree): This model recursively splits data to create a tree structure for predicting the target variable. The specific hyperparameter setting for the DT model in this study is: max_depth = 3. Supplemental Figure 2 depicts the confusion matrices for DT.

ADA (AdaBoost): This model combines multiple weak learners (typically decision trees) to create a strong learner, improving classification performance. The specific hyperparameter settings for the ADA model in this study are: n_estimators = 150, learning_rate = 0.1, seed = 80. Supplemental Figure 3 depicts the confusion matrices for ADA.

LGBM (Light Gradient Boosting Machine): This model uses a histogram algorithm to split continuous features, speeding up the training process and reducing memory load, making it an efficient and fast gradient boosting framework, particularly suitable for large-scale datasets. The specific hyperparameter settings for the LGBM model in this study are: num_leaves = 5, learning_rate = 0.05, n_estimators = 50. Supplemental Figure 4 depicts the confusion matrices for LGBM.

RF (Random Forest): This model constructs multiple decision trees and combines their predictions to improve accuracy and control overfitting. The specific hyperparameter settings for the RF model in this study are: ntree = 310, mtry = 1, maxnodes = 10, max_depth = 1, seed = 80. Supplemental Figure 5 depicts the confusion matrices for RF.

XGB (Extreme Gradient Boosting): This model is an enhanced algorithm based on decision trees, utilizing a new generalized gradient boosting decision tree algorithm to accelerate model construction, with strong applicability for classification and regression tasks. The specific hyperparameter settings for the XGB model in this study are: nrounds = 100, max_depth = 2, eta = 0.39, gamma = 0, colsample_bytree = 0.88, seed = 80. Supplemental Figure 6 depicts the confusion matrices for XGB.

The performance of the six models was evaluated using the following metrics: test set ROC AUC, accuracy, sensitivity, specificity, positive predictive value (PPV), negative predictive value (NPV), and F1 score. The calculation formula is as follows22:

Machine learning metrics equations; diagram showing formulas for accuracy, sensitivity, specificity.

TP: True Positive; TN: True Negative; FP: False Positive; FN: False Negative.

6. Grid search and hyperparameter tuning

To optimize model performance, grid search was utilized to explore various combinations of hyperparameters. Through iterative tuning and evaluation, the optimal hyperparameter combination was identified to maximize the ROC AUC values for both the train and test sets, thereby improving the overall model performance. The ranges of adjusted hyperparameters are presented in Table 3. The grid search is provided in Supplemental Figure 7, Supplemental Figure 8, and Supplemental Table 1, Supplemental Table 2, Supplemental Table 3, and Supplemental Table 4.

7. Variable importance ranking

The top-performing models-Random Forest (RF) and Extreme Gradient Boosting (XGB)-were selected for variable importance ranking. These rankings aid in identifying the most critical predictors of L5-S1 rLDH following PEID.

8. Statistical analysis

All statistical analyses were performed using R software. Categorical variables were reported as percentages, while continuous variables were expressed as mean ± standard deviation. Clinical characteristics and imaging parameters were compared between the non-recurrent group (non-rLDH, n=276) and the recurrent group (rLDH, n=33).

Results

A total of 309 patients with L5-S1 lumbar disc herniation causing lower back and leg pain who underwent percutaneous endoscopic interlaminar discectomy (PEID) were included in this study. Preoperative imaging data, clinical physiological variables, and VAS scores, as well as postoperative imaging and VAS scores, were collected. Among these patients, 33 were classified into the recurrent lumbar disc herniation group (rLDH group), and 276 were categorized into the non-recurrence group (Non-rLDH group). Preoperative clinical and imaging data included 14 categorical variables (mainly for distinguishing basic disease characteristics and lifestyle factors) and 13 continuous variables (describing physiological states and preoperative imaging variables) (Table 1). To ensure reasonable data partitioning, a random seed was set, and all patient data were divided into training and testing sets in an 8:2 ratio.

Lasso regression was performed on the training set for variable selection, with L1 regularization used to determine the optimal penalty coefficient (Optimal λ value shown in Figure 2 and Figure 3). Eight key variables were identified, including six binary variables (Spinal Canal Stenosis, Disease Duration, Numbness or Weakness, Herniation Type, Modic Changes, Diabetes) and two continuous variables (BMI and PDHI).

Using these eight variables, six machine learning models were trained: SVM, DT, ADA, LGBM, RF, and XGB. Hyperparameters for each model were fine-tuned, and their ROC AUC values were compared on the train and test sets (Figure 4 and Figure 5). The model establishment, including the relevant libraries and hyperparameters, is displayed in Table 3. Among these models, XGB performed the best, achieving ROC AUC values of 0.895 on the training set and 0.830 on the test set, with the highest test set performance and minimal overfitting. The second-best model was RF, with ROC AUC values of 0.925 in the training set and 0.800 in the test set (Table 4).

In the test set, BMI emerged as the most critical variable in the XGB model, with a significantly higher gain value compared to other variables, indicating its substantial contribution to predicting rLDH recurrence (Figure 6). Posterior Disc Height Index (PDHI) followed as the second most important variable, also showing high gain values and importance. Other variables, including Spinal Canal Stenosis, Modic Changes, Numbness or Weakness, and Disease Duration, also contributed to the model's predictive capability. Similarly, based on the Mean Decrease Gini criterion, the RF model also identified BMI as the most important variable for predicting rLDH recurrence after PEID (Figure 7). Other important variables included PDHI, Spinal Canal Stenosis, and Modic Changes, while variables such as Numbness or Weakness, Disease Duration, Herniation Type, and Diabetes showed relatively lower importance in the prediction.

DATA AVAILABILITY:
All raw data supporting the results presented in this study are made publicly available. The datasets have been submitted to https://doi.org/10.5281/zenodo.15565334

Flowchart of endoscopic nucleotomy: L5-S1 lumbar disc herniation study; machine learning analysis.
Figure 1: Flow chart showing the study procedure. Please click here to view a larger version of this figure.

Binomial deviance vs. Log(λ) graph; red line, error bars; data fitting analysis, statistical model.
Figure 2: Lasso regression cross-validation curve. This figure shows how different λ values are chosen in the Lasso regression model. The x-axis is log(λ) and the y-axis is binomial deviance. Red dots represent the average cross-validation score for each λ, and the vertical lines show the standard error. The best λ value (indicated by the dashed line on the right) balances model complexity and prediction accuracy, and is typically used for selecting important variables. Please click here to view a larger version of this figure.

Lasso coefficient paths, regression analysis, plot of coefficients vs. L1 Norm, model selection.
Figure 3: Lasso regression coefficient paths. This figure shows how the coefficients of different variables change as the regularization strength λ varies. The x-axis is log(λ), and the y-axis represents the coefficient values. Each line represents a variable. The chosen λ value (from cross-validation) is where the lines remain non-zero, highlighting the most important features in the model. Please click here to view a larger version of this figure.

ROC curve comparison for SVM, DT, ADA, LGBM, RF, XGB; sensitivity vs. 1-specificity graph.
Figure 4: Train Set Receiver Operating Characteristic (ROC) Curve comparison. ROC for six Machine Learning Algorithms on Train sets among 6 models. Please click here to view a larger version of this figure.

ROC curve comparison graph; SVM, DT, ADA, LGBM, RF, XGB models with AUC values.
Figure 5: Test Set Receiver Operating Characteristic (ROC) Curve comparison. ROC for six Machine Learning Algorithms on Train sets among 6 models. Please click here to view a larger version of this figure.

Feature importance chart, XGB model, showing BMI as key; gain indicated by color and size.
Figure 6: XGB feature importance. This plot shows the feature importance calculated using the XGB model. The x-axis represents the importance of features based on the "Gain" metric, which indicates the improvement in model performance when a feature is used for splitting. Each bubble corresponds to a feature, with the size representing the magnitude of "Gain" and the color indicating its value (red for higher gain, blue for lower gain). Please click here to view a larger version of this figure.

Feature importance RF plot, showing BMI, data analysis, random forest, importance chart.
Figure 7: RF feature importance. This plot illustrates the feature importance determined by the Random Forest model using the "Mean Decrease Gini" metric, which measures the reduction in impurity achieved by each feature. The x-axis indicates feature importance, while bubble sizes and colors represent the magnitude of the metric (larger size and redder color signify higher importance). Please click here to view a larger version of this figure.

Categorical variables            Continuous VariablesTarget Variable
GenderAgerLDH
DiabetesOperation Time
HypertensionHeight
CCD (Cardiovascular and Cerebrovascular Diseases)Weight
ScoliosisBMI
Spinal Canal StenosisMDHD
Collected variables TriggerPDH
Disease DurationDBTVC
NWFJOA
Herniation TypeDA
Disc DegenerationSSA
ADDLLA
Modic ChangesPDHI
Disc Calcification
DiabetesFJOArLDH
Spinal Canal StenosisBMI
Selected variablesDisease Duration
Numbness or weakness
Herniation Type
Modic Changes

Table 1: Variables collection and variable selection. The top half of the table shows the collected categorical and continuous variables, while the bottom half lists the variables selected through Lasso regression. The abbreviations used for these variables are as follows: CCD (cardiovascular and cerebrovascular diseases), NW (numbness or weakness), ADD (adjacent disc degeneration), BMI (Body Mass Index), MDHD (Maximum Disc Herniation Diameter), PDH (Posterior Disc Height), DBTVC (Distance Between Two Vertebral Centers), FJOA (Facet Joint Orientation Angle), DA (L5-S1 Disc Angle), SSA (Sacral Slope Angle), LLA (Lumbar Lordosis Angle), and PDHI (Posterior Disc Height Index).

variablesNon-rLDH(n=276)rLDH(n=33)
Gender: Male/Female(%)50.4/49.633.3/66.7
Diabetes: yes/no(%)5.1/94.96.0/94.0
Hypertension: yes/no(%)14.1/85.912.1/87.9
CCD: yes/no(%)2.2/97.80/100
Scoliosis: yes/no(%)1.4/98.60/100
Spinal Canal Stenosis: yes/no(%)6.2/93.818.2/81.8
Trigger: yes/no(%)22.1/77.921.2/78.8
Disease Duration:>6 months/no(%)57.2/42.867.6/32.4
Numbness or Weakness: yes/no(%)58.0/42.075.8/24.2
Herniation Type: non-contained /no(%)87.3/12.791.1/8.9
Disc Degeneration: IV, V/ I, II, III (%)90.6/9.487.9/12.1
ADD: IV, V/ I, II, III (%)58.3/41.766.7/33.3
Modic Changes: yes/no(%)27.9/72.145.5/54.4
Disc Calcification: yes/no(%)22.5/77.527.2/72.8
Age49.80±13.0448.88±15.96
Operation Time53.66±23.4861.06±25.52
Height168.93±8.71166.03±7.93
Weight69.24±11.7173.30±11.39
BMI24.15±2.8526.59±3.71
MDHD6.45±3.036.84±2.68
PDH6.247±1.5207.080±1.631
DBTVC Distance_Between_Two_Vertebral_Centers32.22±2.5131.44±2.65
FJOA45.98±10.4442.07±10.11
DA10.79±6.3511.69±6.70
SSA29.38±8.4329.92±7.35
LLA22.57±9.2422.05±10.37
PDHI0.19±0.040.22±0.05

Table 2: Comparison of variables between Non-rLDH and rLDH groups. Categorical variables are presented as percentages (%). Continuous variables are presented as mean ± standard deviation (Mean ± SD).

Machine learning ModelsSVMDTADALGBMRFXGB
R Librariese1071rpartadalightgbmrandomForestxgboost
Hyperparameters and the Range for Grid Search Hyperparameter Tuningkernel(inear/poly/rbf/sigmoid)maxdepth(1-8)n_estimators(50-250,step=50)num_leaves (5-50,step=5)ntree(50-500,step=10)nrounds(50-500,step=50
cost(10^-3--10^3)learning_rate(0.01-1)learning_rate(0.01-1)mtry(1-8)maxdepth(1-8)
n_estimators(50-150,step=50)maxnodes(1-30)gamma(0-0.5)
maxdepth(1-8)colsample_bytree(0.01-1)
eta(0.01-0.5)

Table 3: Model establishment, including the relevant libraries and hyperparameters.

ModelSVMDTADALGBMRFXGB
Train AUC0.6680.7360.9970.9320.9250.895
Test AUC0.7010.6310.7660.7490.80.83
Accuracy0.8000.8640.8480.7460.8810.881
Sensitivity0.3750.3750.2500.3750.5000.625
Specificity0.8630.9410.9410.8040.9410.922
PPV0.3000.5000.4000.2310.5710.556
NPV0.8980.9060.8890.8910.9230.940
F1_score0.3330.4290.3080.2860.5330.588

Table 4: Performance evaluation of six machine learning models.

Supplemental Figure 1: Confusion matrices for SVM. Please click here to download this figure.

Supplemental Figure 2: Confusion matrices for DT. Please click here to download this figure.

Supplemental Figure 3: Confusion matrices for ADA. Please click here to download this figure.

Supplemental Figure 4: Confusion matrices for LGBM. Please click here to download this figure.

Supplemental Figure 5: Confusion matrices for RF. Please click here to download this figure.

Supplemental Figure 6: Confusion matrices for XGBPlease click here to download this figure.

Supplemental Figure 7: Grid search parameter tuning for SVM. Please click here to download this figure.

Supplemental Figure 8: Grid search parameter tuning for DT. Please click here to download this figure.

Supplemental Table 1: Grid search parameter tuning for ADA. Please click here to download this table.

Supplemental Table 2: Grid search parameter tuning for LGBM. Please click here to download this table.

Supplemental Table 3: Grid search parameter tuning for RF. Please click here to download this table.

Supplemental Table 4: Grid search parameter tuning for XGB. Please click here to download this table.

Discussion

Percutaneous endoscopic intervertebral discectomy (PEID) plays a significant role in treating L5-S1 disc herniation, which makes it highly important to predict postoperative recurrent lumbar disc herniation (rLDH)1,2. In the image selection and data cleaning phase, this study primarily measured MRI images. When image quality was poor or images were blurred, X-ray or CT scans were used for supplementary measurements. For patients with missing clinical data, their data were excluded to prevent affecting the results of data processing. During the subsequent variable selection process, this study employed LASSO regression analysis for variable selection. LASSO regression, through its L1 regularization mechanism for variable selection and coefficient shrinkage, screened 27 variables to address the issue of variable selection, enhancing the stability of the subsequently developed models. The selected variables included higher body mass index (BMI), higher posterior disc height index (PDHI), spinal canal stenosis, Modic changes, numbness or weakness, longer disease duration, non-contained disc herniation type, and diabetes, identified as key risk factors for rLDH5,6,7,8,9,10. The study utilized a grid search algorithm to optimize hyperparameters, ensuring the optimal performance of machine learning models. Notably, when handling high-dimensional variable sets, ensemble learning models such as Extreme Gradient Boosting (XGB) and Random Forest (RF) demonstrated robust predictive performance. In both XGB and RF models, BMI and posterior disc height index (PDHI) consistently ranked as the most important variables, establishing their status as key predictors of rLDH. These variables enable clinicians to better identify high-risk patients, thereby adjusting treatment and management strategies. The importance rankings of other variables varied between the two models, but all had a significant impact on the prediction outcomes. However, in the XGB model, disc herniation type and diabetes were not identified as important variables, which may be related to the algorithm's unique characteristics and importance thresholds.

In recent years, various machine learning models have been widely applied to extract information from complex data to predict rLDH. Jia et al.23 used a Lasso regression model to screen relevant factors and developed a nomogram to predict rLDH within 6 months following percutaneous endoscopic lumbar discectomy (PELD). Li et al.24employed machine learning methods to identify key risk factors for rLDH after minimally invasive discectomy. Unlike previous studies, this study focuses on the L5-S1 segment, proposing a predictive model for rLDH following PEID and pioneering research into recurrence after L5-S1 interlaminar discectomy. The L5-S1 disc, located at the lowest part of the spine, bears the greatest upper body weight and is highly susceptible to degeneration and pathological changes25. Therefore, this study emphasized the unique anatomical features of the L5-S1 disc during variable selection and data collection, such as the L5-S1 DA, SS, LL, and PDHI12. As PEID is a primary surgical technique for L5-S1 disc herniation, investigating the relationship between these anatomical parameters and surgical outcomes is of paramount importance.

Previous studies have identified multiple potential risk factors associated with rLDH, including age, BMI, disease duration, disc degeneration, sagittal range of motion, disc height index (DHI), LL, SS, Modic changes, disc calcification, and disc herniation containment5,23,26,27. BMI is commonly used to assess obesity, and numerous studies have shown that higher BMI is closely associated with increased mechanical stress on the lumbar spine, particularly at the L5-S1 disc, where patients with higher BMI typically face greater disc pressure, likely exacerbating degenerative changes and increasing the risk of postoperative recurrence. Shi et al.28 indicated that a higher DHI is associated with an elevated risk of recurrence. PDHI, defined as the ratio of the posterior disc height to the distance between adjacent vertebrae, further complements and elucidates DHI studies (Table 4). A lower PDHI may indicate disc height loss and reduced nucleus pulposus content, significantly decreasing the risk of recurrence. From a biomechanical perspective, the posterior disc margin is smaller than the anterior margin, a structure that likely increases compression on the posterior disc by the adjacent vertebrae, thereby reducing the risk of re-herniation. Consequently, patients with lower PDHI have a reduced risk of recurrent disc herniation, making this variable significant in predicting rLDH.

The disc angle (DA) reflects the morphological characteristics of the disc in the sagittal plane. A relatively lower posterior margin may mechanically compress the nucleus pulposus, preventing disc herniation. Ren et al.29 considered facet joint orientation angle (FJOA/FO) an important variable, but its contribution in this study was relatively minor and did not pass Lasso regression screening. Pelvic tilt (PT) and facet joint angle (FT) are often used to assess overall spinal alignment and stability, but were limited by the completeness of patient examinations and did not play a significant role in related studies, so they were not included in this analysis29. Ultimately, these variables were not incorporated into the model.

Beyond machine learning approaches, alternative methods such as clinical scoring systems and biomechanical modeling can also be used to predict rLDH. Clinical scoring systems serve as rapid bedside assessment tools for clinicians, requiring no advanced computational infrastructure. However, compared to machine learning models, their predictive accuracy may be limited by the subjectivity of variable selection and insufficient capture of data complexity. Biomechanical modeling is another critical predictive approach, exploring the underlying mechanisms of rLDH by simulating spinal mechanics. The L5-S1 disc, located at the lumbosacral junction, endures significant axial loads and shear forces, with its biomechanical properties playing a crucial role in disc degeneration and recurrence30. Modeling techniques such as finite element analysis (FEA) have been used to study stress distribution and stability in the spine post-discectomy. For example, Schmidt et al.31 developed a three-dimensional finite element model focusing on the biomechanical properties of the lumbar annulus fibrosus, analyzing stress distribution in the annulus post-discectomy. However, biomechanical modeling is limited by its reliance on complex computational resources and high-resolution imaging data, and model validation requires substantial clinical data support.

The significance of this study extends beyond the development of predictive models, encompassing multiple clinical and research domains, including spinal surgery planning, rehabilitation strategies, and risk stratification in orthopedic care. In surgical planning, this predictive model enables surgeons to identify patients at high risk of rLDH, guiding the selection of surgical techniques, such as the extent of discectomy or the need for additional stabilization procedures32. In rehabilitation, identifying key risk factors such as BMI and diabetes can guide personalized postoperative care, emphasizing weight management or targeted physical therapy to reduce mechanical stress on the L5-S1 segment13. In orthopedic care, the model facilitates risk stratification, allowing healthcare providers to prioritize high-risk patients for closer follow-up or early intervention33. These applications significantly improve patient outcomes by aligning clinical strategies with individual risk profiles.

However, this study has some limitations. First, the data were sourced from a single institution, necessitating further external validation to confirm the model's generalizability. Second, the retrospective design may limit the broad applicability of the current evidence.

This study is the first to focus on patients with recurrent lumbar disc herniation (rLDH) after L5-S1 discectomy, applying ensemble learning methods such as XGB and RF to identify BMI, posterior disc height index (PDHI), and spinal stenosis as key predictors. It provides an effective tool for identifying high-risk patients, enabling clinicians to make precise predictions. The data, primarily sourced from patients' clinical records and imaging examinations, is relatively easy to collect and offers good scalability. The application of artificial intelligence and machine learning technologies overcomes the limitations of traditional visual observation, efficiently handling high-dimensional data and selecting the most predictive variables. This results in rLDH prediction accuracy surpassing human empirical judgment, offering new insights and data support for optimizing postoperative management strategies and improving patient outcomes.

Disclosures

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.

Acknowledgements

The authors would like to thank them for their financial support (The work was supported by Science Foundation of Kangda College of Nanjing Medical University (Grant No. KD2024KYJJ292). The work was supported by Nantong University Special Research Fund for Clinical Medicine (Grant No. 2024JY002). This work was supported by the Science and Technology Project of Nantong Municipal Health Commission (grant no. MS2024045). This work was supported by Science and Technology Projects in Jiangsu Province [BE2023742], Project of Jiangsu Administration of Traditional Chinese Medicine (grant no. MS2023113).

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Laptop GPUNVIDIA CorporationN/A
MRI MachineSiemens Healthineers11672453Prisma 3.0T
MRI MachineSiemens Healthineers10849662Ingenia CX 3.0T
MRI MachinePhilips Healthcare781341iCT 64-slice Spiral CT
CT MachinePhilips Healthcare728326Ysio
X-ray MachineSiemens Healthineers100925774.3.1
RThe R FoundationOpen-source software; available at https://www.r-project.org/.
readxlRStudio (Posit)Latest (CRAN)Open-source R package; install via CRAN (install.packages("readxl")).
tidyverseRStudio (Posit)Latest (CRAN)Collection of R packages; install via CRAN (install.packages("tidyverse")).
glmnetCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("glmnet")).
pROCCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("pROC")).
zeallotCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("zeallot")).
reticulateRStudio (Posit)Latest (CRAN)Open-source R package; install via CRAN (install.packages("reticulate")).
showtextCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("showtext")).
e1071CRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("e1071")).
rmsCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("rms")).
rpartCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("rpart")).
caretCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("caret")).
rpart.plotCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("rpart.plot")).
randomForestCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("randomForest")).
corrplotCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("corrplot")).
PRROCCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("PRROC")).
MatrixCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("Matrix")).
dplyrRStudio (Posit)Latest (CRAN)Part of tidyverse; install via CRAN (install.packages("dplyr")).
ggplot2RStudio (Posit)Latest (CRAN)Part of tidyverse; install via CRAN (install.packages("ggplot2")).
classCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("class")).
adaCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("ada")).
lightgbmMicrosoftLatest (CRAN/GitHub)Open-source R package; install via CRAN (install.packages("lightgbm")) or GitHub.
xgboostCRAN contributorsLatest (CRAN)Open-source R package; install via CRAN (install.packages("xgboost")).

References

  1. Chen, Z., et al. Transforaminal versus interlaminar approach of full-endoscopic lumbar discectomy under local anesthesia for L5/S1 disc herniation: A randomized controlled trial. Pain Physician. 25 (8), E1191-E1198 (2022).
  2. Cheng, J., et al. Reoperation after lumbar disc surgery in two hundred and seven patients. Int Orthop. 37 (8), 1511-1517 (2013).
  3. Yin, S., et al. Prevalence of recurrent herniation following percutaneous endoscopic lumbar discectomy: A meta-analysis. Pain Physician. 21 (4), 337-350 (2018).
  4. Pan, M., et al. Percutaneous endoscopic lumbar discectomy: Indications and complications. Pain Physician. 23 (1), 49-56 (2020).
  5. Ju, C. I., Lee, S. M. Complications and management of endoscopic spinal surgery. Neurospine. 20 (1), 56-77 (2023).
  6. Modic, M. T., Ross, J. S. Lumbar degenerative disk disease. Radiology. 245 (1), 43-61 (2007).
  7. Frobin, W., Brinckmann,, Kramer, M., Hartwig, E. Height of lumbar discs measured from radiographs compared with degeneration and height classified from MR images. Eur Radiol. 11 (2), 263-269 (2001).
  8. Li, H., Deng, W., Wei, F., Zhang, L., Chen, F. Factors related to the postoperative recurrence of lumbar disc herniation treated by percutaneous transforaminal endoscopy: A meta-analysis. Front Surg. 9, 1049779(2023).
  9. Hao, L., et al. Recurrent disc herniation following percutaneous endoscopic lumbar discectomy preferentially occurs when Modic changes are present. J Orthop Surg Res. 15 (1), 176(2020).
  10. Kim, C. H., et al. Reoperation rate after surgery for lumbar spinal stenosis without spondylolisthesis: a nationwide cohort study. Spine J. 13 (10), 1230-1237 (2013).
  11. Huang, W., Han, Z., Liu, J., Yu, L., Yu, X. Risk factors for recurrent lumbar disc herniatioN: A Systematic Review and meta-analysis. Medicine (Baltimore). 95 (2), e2378(2016).
  12. Wang, H., Zhou, Y., Li, C., Liu, J., Xiang, L. Risk factors for failure of single-level percutaneous endoscopic lumbar discectomy. J Neurosurg Spine. 23 (3), 320-325 (2015).
  13. Harada, G. K., et al. Artificial intelligence predicts disk re-herniation following lumbar microdiscectomy: development of the "RAD" risk profile. Eur Spine J. 30 (8), 2167-2175 (2021).
  14. Berg, B., et al. Machine learning models for predicting disability and pain following lumbar disc herniation surgery. JAMA Netw Open. 7 (2), e2355024(2024).
  15. Suthar, P., Patel, R., Mehta, C., Patel, N. MRI evaluation of lumbar disc degenerative disease. J Clin Diagn Res. 9 (4), TC04-9(2015).
  16. Li, R., et al. Comparative analysis of percutaneous endoscopic interlaminar discectomy for highly downward-migrated disc herniation. J Orthop Surg Res. 18 (1), 602(2023).
  17. Han, M., Liu, L., Hu, M., Liu, G., Li, P. Medical expert and machine learning analysis of lumbar disc herniation based on magnetic resonance imaging. Comput Methods Programs Biomed. 213, 106498(2022).
  18. Jordan, M. I., Mitchell, T. M. Machine learning: Trends, perspectives, and prospects. Science. 349 (6245), 255-260 (2015).
  19. Tibshirani, R., et al. Strong rules for discarding predictors in lasso-type problems. J R Stat Soc Series B Stat Methodol. 74 (2), 245-266 (2012).
  20. Panda, A., Datar, R., Deshpande, S., Bacher, G. Enhancing pH prediction accuracy in Al2O3 gated ISFET using XGBoost regressor and stacking ensemble learning. Sci Rep. 15 (1), 19197(2025).
  21. Balki, I., et al. Sample-size determination methodologies for machine learning in medical imaging research: A systematic review. Can Assoc Radiol J. 70 (4), 344-353 (2019).
  22. Chiu, P. F., et al. Machine learning assisting the prediction of clinical outcomes following nucleoplasty for lumbar degenerative disc disease. Diagnostics (Basel). 13 (11), 1863(2023).
  23. Jia, M., et al. Development and validation of a nomogram predicting the risk of recurrent lumbar disk herniation within 6 months after percutaneous endoscopic lumbar discectomy. J Orthop Surg Res. 16 (1), 274(2021).
  24. Li, Y., et al. Adjuvant surgical decision-making system for lumbar intervertebral disc herniation after percutaneous endoscopic lumbar discectomy: A retrospective nonlinear multiple logistic regression prediction model based on a large sample. Spine J. 21 (12), 2035-2048 (2021).
  25. Siemionow, K., An, H., Masuda, K., Andersson, G., Cs-Szabo, G. The effects of age, sex, ethnicity, and spinal level on the rate of intervertebral disc degeneration: a review of 1712 intervertebral discs. Spine (Phila Pa 1976). 36 (17), 1333-1339 (2011).
  26. Choi, G., Lee, S. H., Raiturker, P. P., Lee, S., Chae, Y. S. Percutaneous endoscopic interlaminar discectomy for intracanalicular disc herniations at L5-S1 using a rigid working channel endoscope. Neurosurgery. 58 (1 Suppl), ONS59-ONS68 (2006).
  27. Yu, C., et al. Risk factors for recurrent L5-S1 disc herniation after percutaneous endoscopic transforaminal discectomy: A Retrospective Study. Med Sci Monit. 26, e919888(2020).
  28. Shi, H., Zhu, L., Jiang, Z. L., Wu, X. T. Radiological risk factors for recurrent lumbar disc herniation after percutaneous transforaminal endoscopic discectomy: A retrospective matched case-control study. Eur Spine J. 30 (4), 886-892 (2021).
  29. Ren, G., et al. Machine learning predicts recurrent lumbar disc herniation following percutaneous endoscopic lumbar discectomy. Global Spine J. 14 (1), 146-152 (2024).
  30. Wilke, H. J., et al. ISSLS prize winner: A novel approach to determine trunk muscle forces during flexion and extension: A comparison of data from an in vitro experiment and in vivo measurements. Spine (Phila Pa 1976). 28 (23), 2585-2593 (2003).
  31. Schmidt, H., et al. Application of a new calibration method for a three-dimensional finite element model of a human lumbar annulus fibrosus. Clin Biomech (Bristol). 21 (4), 337-344 (2006).
  32. Leven, D., et al. Risk factors for reoperation in patients treated surgically for intervertebral disc herniation: A AR SPORT Data. J Bone Joint Surg Am. 97 (16), 1316-1325 (2015).
  33. Fritzell, P., Knutsson, B., Sanden, B., Strömqvist, B., Hägg, O., et al. Recurrent versus primary lumbar disc herniation surgery: Patient-reported outcomes in the Swedish Spine Register Swespine. Clin Orthop Relat Res. 473 (6), 1978-1984 (2015).

Reprints and Permissions

Tags

L5 S1 RecurrenceMachine Learning PredictionPercutaneous DiscectomyRandom Forest ModelExtreme Gradient BoostingRisk Factor IdentificationSpinal Canal Stenosis

This article has been published

Video Coming Soon