Predicting inadequate postoperative pain management in depressed patients: A machine learning approach
- PMID: 30726237
- PMCID: PMC6364959
- DOI: 10.1371/journal.pone.0210575
Predicting inadequate postoperative pain management in depressed patients: A machine learning approach
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.
Conflict of interest statement
The authors have declared that no competing interests exist.
Figures
Similar articles
-
A comprehensive model for pain management in patients undergoing pelvic reconstructive surgery: a prospective clinical practice study.Am J Obstet Gynecol. 2020 Aug;223(2):262.e1-262.e8. doi: 10.1016/j.ajog.2020.05.019. Epub 2020 May 13. Am J Obstet Gynecol. 2020. PMID: 32413429
-
Pediatrician and family physician prescription of selective serotonin reuptake inhibitors.Pediatrics. 2000 Jun;105(6):E82. doi: 10.1542/peds.105.6.e82. Pediatrics. 2000. PMID: 10835095
-
Association of Hydrocodone Schedule Change With Opioid Prescriptions Following Surgery.JAMA Surg. 2018 Dec 1;153(12):1111-1119. doi: 10.1001/jamasurg.2018.2651. JAMA Surg. 2018. PMID: 30140896 Free PMC article.
-
Depression and Long-Term Prescription Opioid Use and Opioid Use Disorder: Implications for Pain Management in Cancer.Curr Treat Options Oncol. 2022 Mar;23(3):348-358. doi: 10.1007/s11864-022-00954-4. Epub 2022 Mar 7. Curr Treat Options Oncol. 2022. PMID: 35254595 Free PMC article. Review.
-
Interaction between CYP2D6 inhibitor antidepressants and codeine: is this relevant?Expert Opin Drug Metab Toxicol. 2018 Aug;14(8):879-886. doi: 10.1080/17425255.2018.1496236. Epub 2018 Jul 12. Expert Opin Drug Metab Toxicol. 2018. PMID: 29963937 Review.
Cited by
-
Case Identification of Depression in Inpatient Electronic Medical Records: Scoping Review.JMIR Med Inform. 2024 Oct 14;12:e49781. doi: 10.2196/49781. JMIR Med Inform. 2024. PMID: 39401130 Free PMC article. Review.
-
Use of CYP2D6 Inhibitors with CYP2D6 Opioids: Association with Emergency Department Visits for Pain.Clin Pharmacol Ther. 2024 Oct;116(4):1005-1012. doi: 10.1002/cpt.3314. Epub 2024 May 26. Clin Pharmacol Ther. 2024. PMID: 38797987
-
Public Health Informatics and the Perioperative Physician: Looking to the Future.Anesth Analg. 2024 Feb 1;138(2):253-272. doi: 10.1213/ANE.0000000000006649. Epub 2024 Jan 12. Anesth Analg. 2024. PMID: 38215706
-
Natural language processing with machine learning methods to analyze unstructured patient-reported outcomes derived from electronic health records: A systematic review.Artif Intell Med. 2023 Dec;146:102701. doi: 10.1016/j.artmed.2023.102701. Epub 2023 Nov 1. Artif Intell Med. 2023. PMID: 38042599
-
Postoperative opioid prescribing patients with diabetes: Opportunities for personalized pain management.PLoS One. 2023 Aug 24;18(8):e0287697. doi: 10.1371/journal.pone.0287697. eCollection 2023. PLoS One. 2023. PMID: 37616195 Free PMC article.
References
-
- 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
-
- 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
Publication types
MeSH terms
Substances
Grants and funding
LinkOut - more resources
Full Text Sources
Medical
