Detection And Prediction Problems With Applications In Personalized Health Care