Deep learning sensor for Industry 4.0