Predictive maintenance: AI and edge as a dynamic duo