Describir: Deep Learning and Heuristic Optimization for Secure and Efficient Energy Management in Smart Communities