Application of machine learning in wire damage detection for safety procedure