Kalman Filter for Predictive Maintenance and Anomaly Detection