Edge Intelligence for Industrial IoT