Text this: A hybrid data-driven framework for real-time edge computing optimization in IoT environments