Vibrations-Based Machine Fault Diagnosis and Prognosis Using Convolutional Neural Networks