Edge intelligence and Industry 4.0