Related Experiment Video
Updated: Apr 24, 2026

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Development and Validation of Machine Learning-Based Models for Predicting Postoperative Depression Risk in Patients
Jitong Zhao1,2, Kaige Pei1,2, Junhan Liu1,2
1Department of Gynecology and Obstetrics, West China Second University Hospital, Sichuan University, 610041 Chengdu, Sichuan, China.
Objective:
To develop machine learning-based prediction models for postoperative depression risk in patients with ovarian cancer and to evaluate their predictive performance and clinical application value.
Objective:
To develop machine learning-based prediction models for postoperative depression risk in patients with ovarian cancer and to evaluate their predictive performance and clinical application value.
Results:
Among 850 patients, 268 (31.5%) were positive for postoperative depression risk. Feature selection identified 13 predictive variables: age, operation time, length of hospital stay, pain score, white blood cell count, albumin, C-reactive protein, CA125, education level, history of depression/anxiety, postoperative insomnia, fatigue, and opioid analgesic use. Among the five models, random forest demonstrated superior performance with an AUC of 0.776 in the validation set, a Brier score of 0.182, sensitivity of 0.771, and an F1 score of 0.792, along with satisfactory calibration and clinical net benefit. SHAP analysis revealed that pain score, postoperative insomnia, albumin level, and opioid use contributed substantially to model predictions. A nomogram based on logistic regression model was constructed for intuitive individual risk assessment.
Conclusion:
The machine learning-based prediction models for postoperative depression risk in patients with ovarian cancer demonstrated satisfactory discriminative ability and clinical utility, with random forest model showing optimal performance. A clinical nomogram was additionally constructed to enable individualised and visual risk quantification suitable for bedside application. Together, these tools facilitate early identification of high-risk patients and provide evidence for clinical intervention.
