npj Digital Medicine (Mar 2023)

Opioid death projections with AI-based forecasts using social media language

  • Matthew Matero,
  • Salvatore Giorgi,
  • Brenda Curtis,
  • Lyle H. Ungar,
  • H. Andrew Schwartz

DOI
https://doi.org/10.1038/s41746-023-00776-0
Journal volume & issue
Vol. 6, no. 1
pp. 1 – 11

Abstract

Read online

Abstract Targeting of location-specific aid for the U.S. opioid epidemic is difficult due to our inability to accurately predict changes in opioid mortality across heterogeneous communities. AI-based language analyses, having recently shown promise in cross-sectional (between-community) well-being assessments, may offer a way to more accurately longitudinally predict community-level overdose mortality. Here, we develop and evaluate, TrOP (Transformer for Opiod Prediction), a model for community-specific trend projection that uses community-specific social media language along with past opioid-related mortality data to predict future changes in opioid-related deaths. TOP builds on recent advances in sequence modeling, namely transformer networks, to use changes in yearly language on Twitter and past mortality to project the following year’s mortality rates by county. Trained over five years and evaluated over the next two years TrOP demonstrated state-of-the-art accuracy in predicting future county-specific opioid trends. A model built using linear auto-regression and traditional socioeconomic data gave 7% error (MAPE) or within 2.93 deaths per 100,000 people on average; our proposed architecture was able to forecast yearly death rates with less than half that error: 3% MAPE and within 1.15 per 100,000 people.