If AI can help make treatments faster and more effective, it could become part of the solution to the global shortage of mental health provision.