A neural network trained on nearly 5.6 million emergency department visits for ankle sprain identifies age and insurance as key predictors of opioid prescribing.