Improved bacterial foraging optimization with deep learning based anomaly detection in smart cities | Synapse