Text this: Optimizing resource allocation in industrial IoT with federated machine learning and edge computing integration