How chronic pain led to a new AI app for chronic pain