Machine Learning for Predictive Diagnostics at the Edge: An IIoT Practical Example