Many natural and social systems may exhibit abrupt, rare, very large events. Examples are material failure, bursting financial bubbles, epileptic seizures, volcano eruptions, power blackouts, etc. These phenomena typically occur unexpectedly and have catastrophic consequences for the system. Here we discuss the possibility of predicting material failure using machine learning techniques.