RMD Open (May 2024)

Machine learning identifies risk factors associated with long-term opioid use in fibromyalgia patients newly initiated on an opioid

  • Meghna Jani,
  • Yun-Ting Huang,
  • David A Jenkins,
  • Carlos Raúl Ramírez Medina,
  • Mengyu Feng

DOI
https://doi.org/10.1136/rmdopen-2024-004232
Journal volume & issue
Vol. 10, no. 2

Abstract

Read online

Objectives Fibromyalgia is frequently treated with opioids due to limited therapeutic options. Long-term opioid use is associated with several adverse outcomes. Identifying factors associated with long-term opioid use is the first step in developing targeted interventions. The aim of this study was to evaluate risk factors in fibromyalgia patients newly initiated on opioids using machine learning.Methods A retrospective cohort study was conducted using a nationally representative primary care dataset from the UK, from the Clinical Research Practice Datalink. Fibromyalgia patients without prior cancer who were new opioid users were included. Logistic regression, a random forest model and Boruta feature selection were used to identify risk factors related to long-term opioid use. Adjusted ORs (aORs) and feature importance scores were calculated to gauge the strength of these associations.Results In this study, 28 552 fibromyalgia patients initiating opioids were identified of which 7369 patients (26%) had long-term opioid use. High initial opioid dose (aOR: 31.96, mean decrease accuracy (MDA) 135), history of self-harm (aOR: 2.01, MDA 44), obesity (aOR: 2.43, MDA 36), high deprivation (aOR: 2.00, MDA 31) and substance use disorder (aOR: 2.08, MDA 25) were the factors most strongly associated with long-term use.Conclusions High dose of initial opioid prescription, a history of self-harm, obesity, high deprivation, substance use disorder and age were associated with long-term opioid use. This study underscores the importance of recognising these individual risk factors in fibromyalgia patients to better navigate the complexities of opioid use and facilitate patient-centred care.