Deploying machine learning to improve mental health