Establishing a Prediction Model by Machine Learning for Accident-Related Patient Safety