Text this: Cloud-edge hybrid deep learning framework for scalable IoT resource optimization