Text this: Intelligent resource allocation in internet of things using random forest and clustering techniques