Using AI and ML To Optimize Edge IoT Performance