Detecting and treating diseases with precision