Edge Computing and AI for Real-Time IoT Applications