Physical activity trends as predictors of postoperative complications in oncology patients: A machine learning approach

Publication date

2025

Authors

de Miguel Llorente, Carlos
de Vries, Sjoerd
Bor, PetraORCID 0000-0002-8494-349X
Veerhoek, Laura
van den Berg, Jan W
Meijer, Richard PORCID 0000-0003-2510-7982
Veenhof, CindyISNI 0000000391495266
Valkenet, Karin

Editors

Advisors

Supervisors

Document Type

Article

Collections

Open Access logo

License

cc_by_nc

Abstract

BACKGROUND: Early detection of postsurgical complications is critical for improving surgical outcomes, yet current monitoring methods are invasive, time-consuming, and may delay intervention. Advances in machine learning (ML) and artificial intelligence (AI) enable using real-time data, such as accelerometer-derived physical activity, as potential early warning signs. This exploratory study evaluated whether activity trends can predict postsurgical complications in oncology patients using ML models. METHODS: Usual care data from a surgical oncology ward (October 2020-December 2024) were analyzed. Three classifiers were evaluated-Random Forest (RF), eXtreme Gradient Boosting (XGB), and Logistic Regression (LR)-within a nested cross-validation framework. Two modeling strategies were compared: (1) training/testing without undersampling and (2) training with undersampling at varying factors to balance complication versus noncomplication days. Models were assessed for next-day complication prediction using area under the ROC curve (AUC), precision, recall, and F1-score with bootstrap confidence intervals. RESULTS: Data were collected from 965 patients, of whom 189 were included. The best performance for RF was observed at an undersampling factor of 1 (AUC = 0.66, 95% confidence interval (CI) 0.64-0.67; recall = 0.63, 95% CI 0.27-0.91; precision = 0.05, 95% CI 0.03-0.07). LR achieved its highest AUC without undersampling (0.68, 95% CI 0.67-0.69), while XGB performed consistently lower (AUC ≈ 0.63-0.64). CONCLUSIONS: This exploratory study showed that postoperative activity trends alone were insufficient to predict complications after major oncological surgery. Combining accelerometer, physiological, and laboratory data may improve predictive accuracy and overall clinical value in perioperative care.

Keywords

Journal Article

Citation

de Miguel Llorente, C, de Vries, S, Bor, P, Veerhoek, L, Van de Berg, J W, Meijer, R, Veenhof, C & Valkenet, K 2025, 'Physical activity trends as predictors of postoperative complications in oncology patients : A machine learning approach', Digital health, vol. 11. https://doi.org/10.1177/20552076251408520