Smartphones may some day help people take better control of their health by tracking it with increasing precision and convenience.