Accurate Prediction of Day Surgery Duration: Development and Algorithm Evaluation of a Multi-Department Machine Learning Model (Preprint)
Abstract
<sec> <title>BACKGROUND</title> Day surgery is expanding rapidly in China, but its efficiency depends on accurate surgical duration prediction. Traditional methods based on historical averages or surgeon experience often result in significant deviations. While machine learning (ML) has been applied in healthcare, its use in complex, multidisciplinary day surgery contexts remains limited. </sec> <sec> <title>OBJECTIVE</title> To develop department-specific machine learning models by quantifying key features to accurately predict surgical duration and validate performance against traditional methods, providing data-driven support for intelligent day surgery scheduling. </sec> <sec> <title>METHODS</title> We retrospectively analyzed 25,035 cases from 10 departments at West China Hospital (Jan 2022–Apr 2024). Data included demographics, procedure type and anesthesia. After preprocessing, Box-Cox transformation and feature selection, three ML models—Extreme Gradient Boosting(XGBoost), Random Forest (RF) and Neural Network(NN)—were developed. Ten-fold cross-validation, Bayesian optimization and The Shapley Additive exPlanations(SHAP)analysis were applied. Model performance was benchmarked against historical averages. </sec> <sec> <title>RESULTS</title> SHAP analysis identified surgical complexity (Content Quantity) and Average Surgeon Operation Duration as influential predictors. In specialties such as orthopedics, dermatology and gastrointestinal surgery, procedure-specific characteristics also significantly affected predictions. The models demonstrated specialty-specific strengths: XGBoost showed the best predictive performance in departments with complex procedures(e.g., otolaryngology, vascular surgery, thoracic surgery), reduced MAPE by 5-13%; RF excelled in standardized procedures (e.g., gastrointestinal, dermatology, thyroid surgery), reduced MAPE by 2-12%; NN achieved highest accuracy in data-rich departments (e.g., pediatric surgery, breast surgery, orthopedics), with MAPE reduction up to 20%. External validation demonstrated that XGBoost maintained high stability across most departments, while RF performed better in certain departments such as breast surgery. </sec> <sec> <title>CONCLUSIONS</title> Day surgery duration can be predicted using machine learning, influenced by surgical complexity, surgeon-specific operating time and procedure specificity. These models significantly improve prediction accuracy, with different algorithms suited to different specialties. Further validation and real-time data integration are recommended for intelligent perioperative management. </sec>
BibTeX
@misc{chen2025accurate,
author = {Wei Chen and Yaohui Guo and Yu Wang and Yi Li and Qian Liu and Yang Wang and Ming Huang},
title = {{Accurate Prediction of Day Surgery Duration: Development and Algorithm Evaluation of a Multi-Department Machine Learning Model (Preprint)}},
year = {2025},
doi = {10.2196/preprints.78762},
}Ask Althea to put this paper to the test.
Loading related content...