Smartphones track and diagnose