Text this: Explainable AI and machine learning for robust cybersecurity in smart cities