This invention discloses a
machine learning-based method for predicting
postoperative pain and extracting high-risk factors after cesarean section, belonging to the field of
postoperative pain detection technology. It involves a unified modeling of static variables such as preoperative and intraoperative demographic characteristics,
medical history, and surgical parameters, along with dynamic variables such as
physiological monitoring indicators and analgesia intervention data obtained at different
postoperative recovery stages. A two-
branch prediction model with a static coding
branch and a dynamic evolution
branch is constructed. After model training, the SHAP attribution
algorithm is introduced to interpret and analyze the prediction model, decomposing the model output into the contribution of each input variable to the prediction result, thereby quantifying the influence of each factor on pain risk. This invention utilizes a
recurrent neural network to model the
dynamic feature sequence that changes over time, enabling the model to learn the evolutionary pattern of
postoperative pain as it changes with the
recovery stage, improving the accuracy and stability of
chronic pain risk prediction.