A Machine Learning Approach to Fault Diagnosis of Rolling Bearings