AI-assisted Distributed Cloud Services Framework for Enhanced Safety in Urban Smart Cities Environment