A psychologist's research using smartphones is providing valuable data in real time, information that could provide treatment benefits for patients struggling with anxiety and depression.