Similarity Based Methods for Faulty Pattern Detection in Predictive Maintenance