AIoT-as-a-service for smart cities, businesses and enterprises