Winning the Red Queen’s Race with IoT and Artificial Intelligence