Abstract. Cities worldwide are attempting to be claimed as smart, but truly classifying as such remains a great challenge. This paper aims to use artificial intelligence AI to classify the smart city's performance as well as the factors linked to it. This is based on the perceptions of residents on issues related to structures and technology applications available in their cities. To achieve this goal, the study included 200 cities worldwide. For 147 cities we captured the perceptions of 120 residents in each city, by answering a survey of 39 questions evolving around two main Pillars: ‘Structures’ that refers to the existing infrastructure of the city and the ‘Technology’ pillar that describes the technological provisions and services available to the inhabitants. And each one is evaluated under five key areas: health and safety, mobility, activities, opportunities, and governance. The final score of the other 53 cities, was measured by using the data openly available on the internet. And this by means of different algorithms of machine learning such as Random Forest RF, Artificial Neural Network ANN, Support Vector Machine (SVM), and Gradient Boost (XGB). These algorithms have been compared and evaluated in order to select the best one. The tests showed that Random Forest RF alongside with Artificial Neural Network ANN, with the highest level of accuracy, are the best trained model. This study will enable other researches to use machine learning in the identification process of smart cities.