Detection and Prediction of Adverse and Anomalous Events in Medical Robots