The app works by monitoring activity throughout the day. In the sample size, it detected depression with 87 percent accuracy.