Text this: Hybrid-learning based data gathering in wireless sensor networks