Self-aware predictive maintenance