Predictive maintenance for surveillance systems