Open Access Open Access  Restricted Access Subscription or Fee Access

The association of opioid use duration and new depression episode among patients with and without insomnia

Joanne Salas, MPH, Mary Beth Miller, PhD, Jeffrey F. Scherrer, PhD, Rachel Moore, MS, Christina S. McCrae, PhD, Mark D. Sullivan, MD, PhD, Kathleen K. Bucholz, PhD, Laurel A. Copeland, PhD, Brian K. Ahmedani, PhD, F. David Schneider, MD, Patrick J. Lustman, PhD


Objective: Insomnia commonly co-occurs with depression, chronic pain, and opioid use. Both insomnia and chronic opioid analgesic use (OAU) are independent risk factors for a new depression episode (NDE). This study determined if the association between longer OAU duration and NDE was stronger in those with versus without insomnia.

Design: Retrospective cohort.

Setting: Veterans Health Administration electronic medical records (2000-2012).

Participants: New opioid users in follow-up (2002-2012), free of depression for two years prior to follow-up, and aged 18-80 (n = 70,997).

Methods: NDE was 2 ICD-9 codes in a 12-month period. Insomnia before OAU initiation was 1 ICD-9 code. Cox proportional hazard models stratified on insomnia assessed the relationship between initiating a 1-30, 31-90, or > 90 day period of OAU and NDE while controlling for confounders using inverse probability of treatment-weighted propensity scores (PS).

Results: Compared to 1-30 day OAU, 31-90 day was associated with NDE in those without (HR = 1.20; 95 percent CI: 1.12-1.28) but not with insomnia (HR = 1.06; 95 percent CI: 0.86-1.32). Results showed a stronger effect of chronic (>90) OAU in those with insomnia (HR = 1.59; 95 percent CI: 1.27-1.98) compared to those without (HR = 1.31; 95 percent CI: 1.21-1.42). However, all stratum-specific effects were not significantly different (p = 0.136).

Conclusions: Although stratum-specific risks were statistically similar, there was evidence for a trend that chronic OAU is a stronger risk factor for NDE in those with versus without insomnia. Providers are encouraged to monitor sleep impairment among patients on opioid therapy, as sleep may be associated with greater risk for NDE in patients with chronic OAU.



insomnia, pain, opioid, depression, retrospective cohort

Full Text:



Sullivan MD, Edlund MJ, Steffick D, et al.: Regular use of prescribed opioids: Association with common psychiatric disorders. Pain. 2005; 119: 95-103.

Scherrer JF, Salas J, Copeland LA, et al.: Prescription opioid duration, dose, and increased risk of depression in 3 large patient populations. Ann Fam Med. 2016; 14: 54-62.

Scherrer JF, Salas J, Sullivan MD, et al.: The influence of prescription opioid use duration and dose on development of treatment resistant depression. Prev Med. 2016; 91: 110-116.

Salas J, Scherrer JF, Schneider FD, et al.: New-onset depression following stable, slow, and rapid rate of prescription opioid dose escalation. Pain. 2017; 158: 306-312.

Scherrer JF, Salas J, Copeland LA, et al.: Increased risk of depression recurrence after initiation of prescription opioids in noncancer pain patients. J Pain. 2017; 17: 473-482.

Merrill JO, Von Korff M, Banta-Green CJ, et al.: Prescribed opioid difficulties, depression, and opioid dose among chronic opioid therapy patients. Gen Hospital Psychiatry. 2012; 34: 581-587.

Grattan A, Sullivan MD, Saunders KW, et al.: Depression and prescription opioid misuse among chronic opioid therapy recipients with no history of substance abuse. Ann Fam Med. 2012; 10: 304-311.

Howe CQ, Sullivan MD: The missing ‘P’ in pain management: How the current opioid epidemic highlights the need for psychiatric services in chronic pain care. Gen Hospital Psychiatry. 2014; 36: 99-104.

Scherrer JF, Salas J, Sullivan MD, et al.: Impact of adherence to antidepressants on long-term prescription opioid use cessation. Br J Psychiatry. 2018; 212(2): 103-111.

Finan PH, Smith MT: The comorbidity of insomnia, chronic pain, and depression: dopamine as a putative mechanism. Sleep Med Rev. 2013; 17(3): 173-183.

Generaal E, Vogelzangs N, Penninx BW, et al.: Insomnia, sleep duration, depressive symptoms, and the onset of chronic multisite musculoskeletal pain. Sleep. 2017; 40(1): zsw030.

Herrick DD, Sateia MJ: Insomnia and depression: A reciprocal relationship. Psychiatric Ann. 2016; 46: 164-172.

Hertenstein E, Feige B, Gmeiner T, et al.: Insomnia as a predictor of mental disorders: A systematic review and meta-analysis. Sleep Med Rev. 2019; 43: 96-105.

Johnson EO, Roth T, Breslau N: The association of insomnia with anxiety disorders and depression: Exploration of the direction of risk. J Psychiatr Res. 2006; 40(8): 700-708.

Yarlas A, Miller K, Wen W, et al.: Buprenorphine transdermal system improves sleep quality and reduces sleep disturbance in patients with moderate-to-severe chronic low back pain: Results from two randomized controlled trials. Pain Pract. 2016; 16: 345-358.

Morasco BJ, O'Hearn D, Turk DC, et al.: Associations between prescription opioid use and sleep impairment among Veterans with chronic pain. Pain Med. 2014; 15: 1902-1910.

Robertson JA, Purple RJ, Cole P, et al.: Sleep disturbance in patients taking opioid medication for chronic back pain. Anaesthesia. 2016; 71: 1296-1307.

Serdarevic M, Osborne V, Striley CW, et al.: The association between insomnia and prescription opioid use: Results from a community sample in Northeast Florida. Sleep Health. 2017; 3(5): 368-372.

Solberg LI, Engebretson KI, Sperl-Hillen JM, et al.: Are claims data accurate enough to identify patients for performance measures or quality improvement? The case of diabetes, heart disease, and depression. Am J Med Qual. 2006; 21: 238-245.

Frayne SM, Miller DR, Sharkansky EJ, et al.: Using administrative data to identify mental illness: What approach is best? Am J Med Qual. 2010; 25: 42-50.

Scherrer JF, Svrakic DM, Freedland KE, et al.: Prescription opioid analgesics increase the risk of depression. J Gen Int Med. 2014; 29: 491-499.

Seal KH, Shi Y, Cohen G, et al.: Association of mental health disorders with prescription opioids and high-risk opioid use in US Veterans of Iraq and Afghanistan. J Am Med Assoc. 2012; 307: 940-947.

Cole SR, Hernan MA: Constructing inverse probability weights for marginal structural models. Am J Epidemiol. 2008; 168: 656-664.

Curtis LH, Hammill BG, Eisenstein EL, et al.: Using inverse probability-weighted estimators in comparative effectiveness analyses with observational databases. Med Care. 2007; 45: S103-S107.

Harder VS, Stuart EA, Anthony JC: Propensity score techniques and the assessment of measure covariate balance to test causal associations in psychological research. Psychol methods. 2010; 15(3): 234-249.

Kilpatrick RD, Gilbertson D, Brookhart MA, et al.: Exploring large weight deletion and the ability to balance confounders when using inverse probability of treatment weighting in the presence of rare treatment decisions. Pharmacoepidemiol Drug Saf. 2013; 22: 111-121.

Rosenbaum PR, Rubin DB: The central role of the propensity score in observational studies for causal effects. Biometrika. 1983; 1983(70): 41-55.

Xu S, Ross C, Raebel MA, et al.: Use of stabilized inverse propensity scores as weights to directly estimate relative risk and its confidence intervals. Value Health. 2010; 13: 273-277.

Austin P, Stuart E: Moving towards best practice when using inverse probability of treatment weighting (IPTW) using the propensity score to estimate causal treatment effects in observational studies. Stat Med. 2015; 34: 3661-3679.

Sturmer T, Wyss R, Glynn RJ, et al.: Propensity scores for confounder adjustment when assessing the effects of medical interventions using nonexperimental study designs. J Intern Med. 2014; 275: 570-580.

Austin P: Balance diagnostics for comparing the distribution of baseline covariates between treatment groups in propensity-score matched samples. Stat Med. 2009; 28: 3083-3107.

Cheatle MD, Savage SR. Informed consent in opioid therapy: A potential obligation and opportunity. J Pain Symptom Manage. 2012; 44: 105-116.

Kanter JW, Manos RC, Bowe WM, et al.: What is behavioral activation? A review of the empirical literature. Clin Psychol Rev. 2010; 30: 608-620.

O'Brien EM, Waxenberg LB, Atchison JW, et al.: Intraindividual variability in daily sleep and pain ratings among chronic pain patients: Bidirectional association and the role of negative mood. Clin J Pain. 2011; 27(5): 425-433.

Dowell D, Haegerich TM, Chou R: CDC guideline for prescribing opioids for chronic pain—United States, 2016. J Am Med Assoc. 2016; 315: 1624-1645.

Fillingim RB, King CD, Ribeiro-Dasilva MC, et al.: Sex, gender, and pain: A review of recent clinical and experimental findings. J Pain. 2009; 10: 447-485.

Salas J, Scherrer JF, Ahmedani BK, et al.: Gender and the association between long-term prescription opioid use and new-onset depression. J Pain. 2018; 19(1): 88-98.

Gaskin DJ, Richard P: The economic costs of pain in the United States. J Pain. 2012; 13: 715-724.

Schofield DJ, Callander EJ, Shrestha RN, et al.: The indirect economic impacts of comorbidities on people with depression. J Psychiatric Res. 2013; 47: 796-801.



  • There are currently no refbacks.