Edge intelligence for the industrial internet of things