Continuous Diagnosis and Prognosis by Controlling the Update Process of Deep Neural Networks