Stable Prediction of Adverse Events in Medical Time-Series Data