Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2019 Feb 6;14(2):e0210575.
doi: 10.1371/journal.pone.0210575. eCollection 2019.

Predicting inadequate postoperative pain management in depressed patients: A machine learning approach

Affiliations

Predicting inadequate postoperative pain management in depressed patients: A machine learning approach

Arjun Parthipan et al. PLoS One. .

Abstract

Widely-prescribed prodrug opioids (e.g., hydrocodone) require conversion by liver enzyme CYP-2D6 to exert their analgesic effects. The most commonly prescribed antidepressant, selective serotonin reuptake inhibitors (SSRIs), inhibits CYP-2D6 activity and therefore may reduce the effectiveness of prodrug opioids. We used a machine learning approach to identify patients prescribed a combination of SSRIs and prodrug opioids postoperatively and to examine the effect of this combination on postoperative pain control. Using EHR data from an academic medical center, we identified patients receiving surgery over a 9-year period. We developed and validated natural language processing (NLP) algorithms to extract depression-related information (diagnosis, SSRI use, symptoms) from structured and unstructured data elements. The primary outcome was the difference between preoperative pain score and postoperative pain at discharge, 3-week and 8-week time points. We developed computational models to predict the increase or decrease in the postoperative pain across the 3 time points by using the patient's EHR data (e.g. medications, vitals, demographics) captured before surgery. We evaluate the generalizability of the model using 10-fold cross-validation method where the holdout test method is repeated 10 times and mean area-under-the-curve (AUC) is considered as evaluation metrics for the prediction performance. We identified 4,306 surgical patients with symptoms of depression. A total of 14.1% were prescribed both an SSRI and a prodrug opioid, 29.4% were prescribed an SSRI and a non-prodrug opioid, 18.6% were prescribed a prodrug opioid but were not on SSRIs, and 37.5% were prescribed a non-prodrug opioid but were not on SSRIs. Our NLP algorithm identified depression with a F1 score of 0.95 against manual annotation of 300 randomly sampled clinical notes. On average, patients receiving prodrug opioids had lower average pain scores (p<0.05), with the exception of the SSRI+ group at 3-weeks postoperative follow-up. However, SSRI+/Prodrug+ had significantly worse pain control at discharge, 3 and 8-week follow-up (p < .01) compared to SSRI+/Prodrug- patients, whereas there was no difference in pain control among the SSRI- patients by prodrug opioid (p>0.05). The machine learning algorithm accurately predicted the increase or decrease of the discharge, 3-week and 8-week follow-up pain scores when compared to the pre-operative pain score using 10-fold cross validation (mean area under the receiver operating characteristic curve 0.87, 0.81, and 0.69, respectively). Preoperative pain, surgery type, and opioid tolerance were the strongest predictors of postoperative pain control. We provide the first direct clinical evidence that the known ability of SSRIs to inhibit prodrug opioid effectiveness is associated with worse pain control among depressed patients. Current prescribing patterns indicate that prescribers may not account for this interaction when choosing an opioid. The study results imply that prescribers might instead choose direct acting opioids (e.g. oxycodone or morphine) in depressed patients on SSRIs.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Identification of depressed patients and patients on SSRIs using clinical notes and structured data.
Fig 2
Fig 2. Receiver operator characteristic (ROC) curves for the model’s performance with 10-fold cross validation at three postoperative time-points.
(A) ROC-AUC for prediction of pain score change at discharge. (B) ROC-AUC for prediction of pain score change at 3 weeks. (C) ROC-AUC for prediction of pain score change at 8 weeks.
Fig 3
Fig 3. Discriminative features selected by the three models: Coefficients computed by the ElasticNet models are represented as weights.
(A) discharge postoperative pain score predictions. (B) 3-week postoperative pain score predictions. (C) 8-week postoperative pain score predictions.

Similar articles

Cited by

References

    1. Gawande AA. It's Time to Adopt Electronic Prescriptions for Opioids. Ann Surg, 2017;265(4): 693–694. 10.1097/SLA.0000000000002133 - DOI - PubMed
    1. Waljee JF, Li L, Brummett CM, Englesbe MJ. Iatrogenic Opioid Dependence in the United States: Are Surgeons the Gatekeepers? Ann Surg, 2017;265(4): 728–730. 10.1097/SLA.0000000000001904 - DOI - PubMed
    1. Apfelbaum JL, Chen C, Mehta SS, Gan TJ. Postoperative pain experience: results from a national survey suggest postoperative pain continues to be undermanaged. Anesth Analg, 2003;97: 534–540, table of contents. - PubMed
    1. Carroll LJ, Cassidy JD, Cote P. Depression as a risk factor for onset of an episode of troublesome neck and low back pain. Pain 2004;107: 134–139. - PubMed
    1. Currie SR, Wang J. More data on major depression as an antecedent risk factor for first onset of chronic back pain. Psychol Med 2005;35: 1275–1282. 10.1017/S0033291705004952 - DOI - PubMed

Publication types