Advancing Edge-Integrated IoT Systems: Unleashing the Power of AI for Energy-Efficient and Real-Time Solutions