An algorithmic approach to reducing unexplained pain disparities in underserved populations