AI system for optimization of mental health care