Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Perioperative Medicine

Date Submitted: Jun 21, 2022
Date Accepted: Jan 24, 2023

The final, peer-reviewed published version of this preprint can be found here:

A Neural Network Model Using Pain Score Patterns to Predict the Need for Outpatient Opioid Refills Following Ambulatory Surgery: Algorithm Development and Validation

Gabriel RA, Simpson S, Zhong W, Burton BN, Mehdipour S, Said ET

A Neural Network Model Using Pain Score Patterns to Predict the Need for Outpatient Opioid Refills Following Ambulatory Surgery: Algorithm Development and Validation

JMIR Perioper Med 2023;6:e40455

DOI: 10.2196/40455

PMID: 36753316

PMCID: 9947767

A Neural Network Model Using Pain Score Patterns to Predict Need for Outpatient Opioid Refills Following Ambulatory Surgery: A Retrospective Analysis

  • Rodney Allanigue Gabriel; 
  • Sierra Simpson; 
  • William Zhong; 
  • Brittany Nicole Burton; 
  • Soraya Mehdipour; 
  • Engy Tadros Said

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

Please cite as:

Gabriel RA, Simpson S, Zhong W, Burton BN, Mehdipour S, Said ET

A Neural Network Model Using Pain Score Patterns to Predict the Need for Outpatient Opioid Refills Following Ambulatory Surgery: Algorithm Development and Validation

JMIR Perioper Med 2023;6:e40455

DOI: 10.2196/40455

PMID: 36753316

PMCID: 9947767

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© 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.