Intelligent maintenance system for locomotive bearings