OPBench: A Graph Benchmark to Combat the Opioid Crisis
Organizations: University of Notre Dame · Amazon · University of Connecticut
Abstract
The opioid epidemic continues to ravage communities worldwide, straining healthcare systems, disrupting families, and demanding urgent computational solutions. To combat this lethal opioid crisis, graph learning methods have emerged as a promising paradigm for modeling complex drug-related phenomena. However, a significant gap remains: there is no comprehensive benchmark for systematically evaluating these methods across real-world opioid crisis scenarios. To bridge this gap, we introduce OPBench, the first comprehensive opioid benchmark comprising five datasets across three critical application domains: opioid overdose detection from healthcare claims, illicit drug trafficking detection from digital platforms, and drug misuse prediction from dietary patterns. Specifically, OPBench incorporates diverse graph structures, including heterogeneous graphs and hypergraphs, to preserve the rich and complex relational information among drug-related data. To address data scarcity, we collaborate with domain experts and authoritative institutions to curate and annotate datasets while adhering to privacy and ethical guidelines. Furthermore, we establish a unified evaluation framework with standardized protocols, predefined data splits, and reproducible baselines to facilitate fair and systematic comparison among graph learning methods. Through extensive experiments, we analyze the strengths and limitations of existing graph learning methods, thereby providing actionable insights for future research in combating the opioid crisis. Our source code and datasets are available at https://github.com/Tianyi-Billy-Ma/OPBench.
Figures & tables
| Dataset | Domain | Type | Task | Class Ratio | |||
|---|---|---|---|---|---|---|---|
| Pdmp-OD-Det | Healthcare | Het. | 54,318 | 321,437 | BC | 2 | 1.0 / 1.0 |
| X-HyDrug-Comm | Social Network | Hp. | 2,936 | 33,893 | ML | 6 | 1.0/1.4/2.1/1.1/0.3/4.1 |
| X-HyDrug-Role | Social Network | Hp. | 2,936 | 33,893 | MC | 4 | 1.0 / 0.8 / 4.0 / 1.2 |
| X-MRDrug-Role | Social Network | MR. | 27,945 | 436,385 | MC | 4 | 1.0 / 1.2 / 4.4 / 56.3 |
| NHANES-Diet | Dietary | Het. | 13,742 | 445,468 | BC | 2 | 1.0/1.0 |
| Model | Train-10% Valid-10% Test-80% | Train-20% Valid-10% Test-70% | Train-50% Valid-10% Test-40% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUC | F1-Macro | F1-Micro | AUC | F1-Macro | F1-Micro | AUC | F1-Macro | F1-Micro | |
| MLP | 72.57 6.86 | 68.77 4.97 | 67.06 6.54 | 77.02 0.69 | 71.12 6.32 | 72.40 5.79 | 75.41 2.67 | 60.52 8.59 | 66.18 8.59 |
| GCN ( Kipf and Welling, 2017 ) | 60.96 0.35 | 52.95 6.58 | 57.86 0.27 | 68.58 0.26 | 57.58 8.47 | 60.20 4.35 | 70.91 0.55 | 66.99 8.01 | 67.13 3.35 |
| GAT ( Veličković et al., 2018 ) | 61.76 4.48 | 53.94 7.67 | 56.70 3.11 | 70.75 2.49 | 59.10 10.36 | 61.77 5.60 | 75.78 2.85 | 69.64 6.43 | 70.82 2.20 |
| R-GCN ( Schlichtkrull et al., 2018 ) | 63.37 3.95 | 55.85 10.78 | 58.99 4.51 | 70.54 3.99 | 59.79 12.91 | 63.14 6.37 | 73.94 0.25 | 67.93 0.33 | 68.03 0.34 |
| HAN ( Wang et al., 2019 ) | 79.14 0.45 | 75.78 4.92 | 74.82 4.73 | 84.11 4.82 | 76.45 11.09 | 79.44 3.05 | 87.06 4.11 | 78.02 9.22 | 82.41 2.54 |
| Model | Train-10% Valid-10% Test-80% | Train-20% Valid-10% Test-70% | Train-50% Valid-10% Test-40% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | |
| MLP | 82.63 0.68 | 47.55 4.27 | 70.55 2.11 | 84.05 0.43 | 58.48 4.29 | 74.60 1.07 | 84.59 0.38 | 56.13 3.44 | 74.96 0.97 |
| GCN ( Kipf and Welling, 2017 ) | 78.68 0.23 | 39.09 0.97 | 63.58 0.76 | 80.14 0.24 | 41.37 1.84 | 65.36 0.28 | 80.66 0.33 | 45.39 2.32 | 66.67 1.19 |
| GAT ( Veličković et al., 2018 ) | 79.42 0.51 | 42.21 2.28 | 64.72 0.78 | 80.44 0.59 | 47.54 2.75 | 66.68 1.75 | 82.10 0.54 | 55.12 1.68 | 71.08 1.19 |
| HGNN ( Feng et al., 2019 ) | 80.70 0.16 | 45.40 1.40 | 65.84 0.20 | 82.31 0.32 | 49.96 1.66 | 69.96 0.93 | 82.49 2.88 | 50.97 2.88 | 69.77 0.77 |
| HNHN ( Dong et al., 2020 ) | 82.55 0.65 | 54.64 1.78 | 71.80 1.37 | 83.89 0.48 | 57.60 4.97 | 74.26 1.02 | 85.05 0.86 | 58.07 3.28 | 76.01 1.71 |
| Model | Train-10% Valid-10% Test-80% | Train-20% Valid-10% Test-70% | Train-50% Valid-10% Test-40% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | |
| MLP | 67.46 0.53 | 45.25 2.37 | 67.46 0.53 | 68.35 1.03 | 47.60 1.40 | 68.35 1.03 | 69.58 1.75 | 48.89 2.25 | 69.58 1.75 |
| GCN ( Kipf and Welling, 2017 ) | 64.87 0.51 | 40.55 0.66 | 64.87 0.51 | 65.20 0.78 | 39.36 0.76 | 65.20 0.78 | 66.08 1.12 | 44.49 2.06 | 66.08 1.12 |
| GAT ( Veličković et al., 2018 ) | 65.57 0.81 | 40.37 1.44 | 65.57 0.81 | 66.42 1.28 | 41.26 1.55 | 66.42 1.28 | 67.35 2.04 | 41.49 1.65 | 67.35 2.04 |
| HGNN ( Feng et al., 2019 ) | 67.69 0.21 | 43.45 2.00 | 67.69 0.21 | 68.64 0.90 | 46.06 1.86 | 68.64 0.90 | 69.38 0.92 | 49.02 2.78 | 69.38 0.92 |
| HNHN ( Dong et al., 2020 ) | 66.89 0.63 | 40.83 1.43 | 66.89 0.63 | 67.90 0.86 | 41.11 1.49 | 67.90 0.86 | 68.94 1.55 | 45.40 3.88 | 68.94 1.55 |
| Model | Train-10% Valid-10% Test-80% | Train-20% Valid-10% Test-70% | Train-50% Valid-10% Test-40% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| GMean | F1-Macro | F1-Micro | GMean | F1-Macro | F1-Micro | GMean | F1-Macro | F1-Micro | |
| MLP | 40.53 12.80 | 62.38 2.40 | 94.43 0.11 | 52.60 2.61 | 66.43 1.20 | 94.94 0.17 | 59.74 1.57 | 70.30 1.09 | 95.56 0.29 |
| Oversampling ( Zheng et al., 2015 ) | 57.61 2.11 | 62.66 0.77 | 92.40 0.49 | 60.83 1.35 | 64.33 0.67 | 92.59 0.52 | 65.53 2.53 | 68.45 1.95 | 94.10 0.41 |
| SMOTE ( Chawla et al., 2002 ) | 57.98 3.68 | 62.68 1.69 | 92.50 1.09 | 60.92 0.99 | 65.52 0.63 | 93.49 0.09 | 65.52 2.78 | 69.10 1.53 | 94.31 0.22 |
| GCN ( Kipf and Welling, 2017 ) | 33.84 20.01 | 60.31 3.59 | 94.48 0.10 | 52.03 4.45 | 64.38 1.64 | 94.75 0.18 | 53.55 3.69 | 66.08 1.38 | 95.22 0.26 |
| GAT ( Veličković et al., 2018 ) | 26.87 16.89 | 53.43 3.39 | 91.35 0.41 | 44.79 8.41 | 58.63 3.33 | 92.78 0.52 | 55.67 3.44 | 65.55 1.73 | 94.40 0.37 |
| Model | Train-10% Valid-10% Test-80% | Train-20% Valid-10% Test-70% | Train-50% Valid-10% Test-40% | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | Acc. | F1-Macro | F1-Micro | |
| MLP | 68.87 1.27 | 69.27 2.30 | 68.87 1.27 | 70.62 0.62 | 71.49 0.90 | 70.62 0.62 | 72.76 0.89 | 73.90 0.97 | 72.76 0.89 |
| GCN ( Kipf and Welling, 2017 ) | 71.51 1.20 | 73.01 1.48 | 71.51 1.20 | 73.46 0.85 | 75.53 0.90 | 73.46 0.85 | 74.90 0.60 | 77.15 0.67 | 74.90 0.60 |
| GAT ( Veličković et al., 2018 ) | 73.74 0.74 | 76.12 1.01 | 73.74 0.74 | 74.97 0.64 | 77.36 0.66 | 74.97 0.64 | 75.32 0.90 | 77.80 0.90 | 75.32 0.90 |
| R-GCN ( Schlichtkrull et al., 2018 ) | 72.74 1.06 | 74.73 1.25 | 72.74 1.06 | 74.26 0.70 | 76.62 0.60 | 74.26 0.70 | 75.42 0.66 | 77.96 0.58 | 75.42 0.66 |
| HAN ( Wang et al., 2019 ) | 74.06 0.82 | 76.27 1.07 | 74.06 0.82 | 75.10 0.55 | 77.69 0.37 | 75.10 0.55 | 75.90 0.89 | 78.46 0.84 | 75.90 0.89 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Community Type | Representative Drugs (Keywords) |
|---|---|
| Cannabis | Cannabis and cannabis-infused products |
| Opioid | Oxycodone, Codeine, Morphine, Fentanyl, Hydrocodone |
| Hallucinogen | LSD, MDMA, Shroom, Mescaline, DMT, Ketamine |
| Stimulant | Cocaine, Amphetamine, Methamphetamine |
| Depressant | Xanax, Farmapram, Valium, Halcion, Ativan, Klonopin |
| Others | Drugs not listed above |
| Node Type | #Nodes | Feature Dim |
|---|---|---|
| Patient ( P. ) | 30,574 | 768 |
| Prescriber ( Pr. ) | 21,159 | 768 |
| Pharmacy ( Ph. ) | 2,517 | 768 |
| Drug ( D. ) | 68 | 768 |
| Edge Type | #Edges | |
| P. -take- D. | 76,172 | |
| Node Type | #Nodes | Feature Dim |
|---|---|---|
| User ( U. ) | 4,826 | 37 |
| Food ( F. ) | 5,896 | 814 |
| Ingredient ( I. ) | 2,792 | 768 |
| Category ( C. ) | 174 | 768 |
| Habit ( H. ) | 54 | 768 |
| Edge Type | #Edges | |
| Train-10%Valid-10%Test-80% | Train-20%Valid-10%Test-70% | Train-50%Valid-10%Test-40% | |||||||||||
| Model | LR | WD | Drop | Dim | LR | WD | Drop | Dim | LR | WD | Drop | Dim | |
| Pdmp-OD-Det | MLP | 0.001 | 0.0001 | 0.0 | 512 | 0.01 | 0.0 | 0.5 | 512 | 0.01 | 0.0001 | 0.5 | 256 |
| GCN | 0.0001 | 0.0001 | 0.3 | 256 | 0.0001 | 0.0 | 0.5 | 512 | 0.0001 | 0.0 | 0.5 | 128 | |
| GAT | 0.0001 | 0.0 | 0.5 | 256 | 0.0001 | 0.0001 | 0.3 | 256 | 0.0001 | 0.0 | 0.5 | 256 | |
| R-GCN | 0.01 | 0.0 | 0.0 | 512 | 0.0001 | 0.0 | 0.5 | 64 | 0.0001 | 0.0 | 0.5 | 512 | |
| HAN | 0.001 | 0.0001 | 0.3 | 512 | 0.001 | 0.0 | 0.3 | 256 | 0.001 | 0.0001 | 0.3 | 512 | |
Benchmark Design
Benchmark design creates tasks, datasets, metrics, and protocols that make AI capabilities measurable and comparisons credible.
See all 391 papers