Application of Machine Learning in Fault Diagnostics of Mechanical Systems