Smartphones that are being used to track our faces and voices could also be used to help make mental health care more accessible and affordable.