Accepted for/Published in: JMIR Perioperative Medicine
Date Submitted: Jun 21, 2022
Date Accepted: Jan 24, 2023
A Neural Network Model Using Pain Score Patterns to Predict Need for Outpatient Opioid Refills Following Ambulatory Surgery: A Retrospective Analysis
ABSTRACT
Expansion of clinical guidance tools is crucial to identify patients at risk of requiring an opioid refill after outpatient surgery. The objective of this study was to develop machine-learning algorithms incorporating pain and opioid features to predict need for outpatient opioid refills following ambulatory surgery. Neural networks, regression, random forest, and a support vector machine were used to evaluate the dataset. For each model, over and undersampling techniques were implemented to balance the dataset. Hyperparameter tuning based on k-fold cross validation was performed and feature importance was ranked based on a SHapley Additive exPlanations (SHAP) explainer model. To assess performance, we calculated the average area under the receiver operating characteristics curve (AUC), sensitivity and specificity for each model. There were 1,333 patients, of which 10.8% refilled their opioid prescription within two weeks after outpatient surgery. Of all models, neural networks performed the best. The average AUC calculated from k-fold cross-validation was 0.71. When the dataset was split into 70% training and 30% test set, the AUC was 0.75. The features with the highest impact on model output were performance of a regional nerve block, post-anesthesia care unit (PACU) maximum pain score, PACU median pain score, active smoking history, and total perioperative opioid consumption. Applying machine learning algorithms allows providers to better predict outcomes that require specialized healthcare resources. This model serves as a guide for predictive features that can aid as clinical decision support for early identification of at-risk patients that may benefit from transitional pain clinic care perioperatively in ambulatory surgery.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.