How would you handle a severe class imbalance in a dataset predicting machinery failure, and how would you evaluate the result?