An adaptive data-driven method for accurate prediction of remaining useful life of rolling bearings