Filter-Based Fault Diagnosis and Remaining Useful Life Prediction