Text this: Advancing smart communities with a deep learning framework for sustainable resource management