Artiﬁcial Intelligence in the Urban Environment: Smart Cities as Models for Developing Innovation and Sustainability

: Climate change, overpopulation and the squandering of resources currently pose problems of such magnitude that they require a change in the trend to mitigate their e ﬀ ects. It is essential to make society aware of the facts and to educate the population about the advantages that new technologies can provide for e ﬃ cient urban development. We therefore ask whether an ordinary medium-sized city can become a Smart City. In order to assess this possibility, our study analyzes di ﬀ erent models of Smart Cities implemented in Spain (e.g., Madrid, Barcelona, Valencia, Malaga and Santander), contrasting them with the speciﬁc case of one city that is not yet a Smart City (Granada) in order to discuss which strategic technological actions to implement in di ﬀ erent topical areas of action: the economy, sustainability, mobility, government, population, and quality of life. The study uses Cohen’s wheel to give researchers in the ﬁeld a series of indicators and factors that can be used to analyze public data with statistical methods in order to obtain clear positive scores for Madrid and Barcelona. The analysis shows Granada’s deﬁciencies in the scores for digital government, accessibility, the e ﬃ ciency of public transport, and mobility, among others. Finally, the data obtained demonstrate the need to implement an integrated dashboard with di ﬀ erent proposals in the strategic areas analyzed in order to achieve the transformation of conventional cities into Smart Cities.


Introduction
The widespread growth of urban spaces is an increasingly worrying reality. By the middle of this century, two thirds of the population are expected to inhabit large cities, with over 20 megacities of over 10 million inhabitants [1]. This change raises a question we must try to answer: are we forcing changes in the environment?
Humanity has advanced by giant steps on these issues in the past century. The transformation of rural areas into big cities, the creation of transportation networks that are intensively interconnected by high-speed technologies, the infrastructures in the urban environment, and the methods of technological research, etc., have brought changes of a magnitude that has been impossible since the Industrial Revolution [2]. However, these changes have also created serious problems for public health and the environment due to the use of fossil fuels [3]. Large amounts of greenhouse gas emissions, the squandering of natural resources, and current problems such as the coronavirus (SARS-CoV-2) are now alerting us to the need to change the trend and mitigate the effects of human action. Adopting extraordinary measures, such as the lockdown and paralysis of a large portion of economic activity, have had negative repercussions for Gross Domestic Product (GDP) and employment in much of

Relationship between Connectivity and AI: Complexity Theory
We need only examine AI's uses globally to understand how important it is for society and for businesses [34]: • Facebook recently disclosed plans to invest in AI at the annual F8 conference. • Baidu is investing heavily in artificial intelligence: "The era of mobile Internet is over." In fact, 5G, which focuses on AI, is becoming a disruptive innovation of the Internet. • JPMorgan is using AI to achieve high financial automation and increase employee productivity. • Deloitte's 2020 CEO Shelby Austin confirmed that the organization was thrilled to collaborate with the World Economic Forum and the government of the UK in the development of procurement guidelines that help the public sector put AI at the service of its constituents in a manner that is both efficient and ethical.
Furthermore, the largest companies around the world are using AI to improve their connections and undertake significant actions to enhance their performance. These actions include media buying, runbook automation, reducing production management work through automation, resolving users' technology problems, detecting and deterring security intrusions, tailoring promotions (online or offline), monitoring social media comments to determine overall brand affinity and issues, anticipating future customer purchases and presenting offers accordingly, and gauging internal compliance by using approved technology vendors [35].
From a complexity perspective, AI and innovation are significantly related to Complexity Theory. Because they enable a firm's innovativeness through dynamic network structures [19], Sustainability 2020, 12, 7860 4 of 26 the new innovative knowledge (AI) acquired by connections [36] creates interactions that can determine the development of organizations and enable innovativeness [19]. Moreover, the greater the connectivity of society and organizations, the more information exists, and the more complex entrepreneurial systems are. Connections thus create new or more complex entrepreneurial ecosystems through their different ways of obtaining information. Complexity theory is a productive perspective from which to examine these heterogeneous agents that promote connectivities. Its application can help to make society aware of the importance of AI in a city and help the city to achieve its goal of becoming a Smart City.
2.1. 3. The Importance of Sustainability as a Resulting Performance AI applications can predict time-to-performance milestones based on progress data and provide customized products, processes, or services for web searches and social media users. The University of Queensland developed a deep learning system called Blackboard [37], a neural networks analysis of players' decision-making processes based on their previous behavior, to help players make the best decisions to accomplish their goals.
This feature of AI would have a positive influence on city governments. For example, it would analyze drivers' current situations in cities and make predictions about what will happen next, in order to avoid traffic accidents or traffic jams, and administer polls, etc. This feature could also be used in teaching, to analyze citizens' behavior in order to identify which of their habits pollute, and then correct them, or even to discover what problems citizens face and develop better plans to help them. AI thus encourages sustainability as a much-needed change in cities.

Current Problems: Overpopulation, Pollution, New Illnesses, and the Squandering of Resources
This section presents four major problems at the global level in today's large cities, based on the various sources available [38][39][40]. It then proposes strategic action to undertake in response.

Overpopulation: Pressure Generated by Migration from Rural Areas to Urban Centers
This study is motivated by the alarming data from various official sources. According to the current data from the United Nations (UN), the population growth of urban agglomerations has increased at a dizzying rate. The world's population is expected to increase by over 2000 million in the next 30 years, reaching 11,000 million by 2100 at its most critical point. Changes in the population size and distribution (an increase in the population living in urban agglomerations) have negative consequences for the environment and the Sustainable Development Goals (SDGs) agreed upon to reduce environmental impact and improve social wellbeing. Recent studies of the increase in the population rate in the nine cities with the highest exponential growth in population density worldwide show that India will replace China as the most populous country in the world by 2027 [41].
The United Nations Educational, Scientific and Cultural Organization (UNESCO) [42] estimates that, by 2030, over 60% of the world's population will inhabit urban centers. According to the UN [1], by 2050, there will be over 41 megacities (of over 10 million inhabitants). The trend toward urban population is increasing in the global population (Figure 1), and a higher percentage of the urban population inhabits urban agglomerations (currently, nearly 50%).
In Spain, around 60% of the population already lives in urban agglomerations. Since 1950, the population has grown around 53% in towns, while the metropolitan population has grown around 136%. Such growth produces a sharp regional contrast and makes it difficult to maintain sustainable evolution [43].
Further, most developed countries have inverted population pyramids due to a high life expectancy at birth and an aging population, while the poorest countries have high fertility rates. Efforts to improve quality of life are higher in developed countries, since they tend to reduce inequalities and combat hunger and malnutrition. In contrast to Africa and other developing regions, developed countries have low birth-rates and increased emigration. Migration therefore becomes a trigger of overpopulation in many In Spain, around 60% of the population already lives in urban agglomerations. Since 1950, the population has grown around 53% in towns, while the metropolitan population has grown around 136%. Such growth produces a sharp regional contrast and makes it difficult to maintain sustainable evolution [43].
Further, most developed countries have inverted population pyramids due to a high life expectancy at birth and an aging population, while the poorest countries have high fertility rates. Efforts to improve quality of life are higher in developed countries, since they tend to reduce inequalities and combat hunger and malnutrition. In contrast to Africa and other developing regions, developed countries have low birth-rates and increased emigration. Migration therefore becomes a trigger of overpopulation in many metropolises worldwide. The exponential increase in migratory movement impacts the environment, producing another major problem of 21st-century large cities: excessive pollution.

Pollution: the Widespread Growth of Metropolises, which Generate Over 80% of Global Pollution
Today, human beings are truly interested in health issues and the implications of the environment for their health. Environmental health emerged as a problem during the last century due to exponential industrial development. Various published studies show the repercussions of this growth: one out of every four illnesses is cause by pollution [8].
Headlines like these alarm society. Despite the skepticism of many, this news promotes a dizzying change in the trend through the search for solutions.
The level of particulate matter air pollution (PM 2.5) is growing significantly worldwide [39]. Figure 2 shows the increase in the average annual exposure to air pollution levels of PM 2.5 in micrograms per m 3 , and in total percentage of the population exposed to levels above the limits established by the World Health Organization (WHO) [40]. Of the years for which data are available, we see that 2016 shows the highest recorded pollution relative to the total percentage of the population exposed.

Pollution: the Widespread Growth of Metropolises, which Generate Over 80% of Global Pollution
Today, human beings are truly interested in health issues and the implications of the environment for their health. Environmental health emerged as a problem during the last century due to exponential industrial development. Various published studies show the repercussions of this growth: one out of every four illnesses is cause by pollution [8].
Headlines like these alarm society. Despite the skepticism of many, this news promotes a dizzying change in the trend through the search for solutions.
The level of particulate matter air pollution (PM 2.5) is growing significantly worldwide [39]. Figure 2 shows the increase in the average annual exposure to air pollution levels of PM 2.5 in micrograms per m 3 , and in total percentage of the population exposed to levels above the limits established by the World Health Organization (WHO) [40]. Of the years for which data are available, we see that 2016 shows the highest recorded pollution relative to the total percentage of the population exposed. The current urban phenomenon began with the Industrial Revolution and has been developing in different urban models, with changes in social patterns and new lifestyles due to innovation and the advent of information technologies (IT).
As Figure 3 shows, the comparison of a city like Gwalior (India) (one of the most polluted cities in the world) to the reference data established by the WHO shows that Gwalior far exceeds the limit values established. The world's cleanest cities, such as Helsinki (Finland), in contrast, have values below the WHO's limits [9]. The current urban phenomenon began with the Industrial Revolution and has been developing in different urban models, with changes in social patterns and new lifestyles due to innovation and the advent of information technologies (IT). As Figure 3 shows, the comparison of a city like Gwalior (India) (one of the most polluted cities in the world) to the reference data established by the WHO shows that Gwalior far exceeds the limit values established. The world's cleanest cities, such as Helsinki (Finland), in contrast, have values below the WHO's limits [9]. The current urban phenomenon began with the Industrial Revolution and has been developing in different urban models, with changes in social patterns and new lifestyles due to innovation and the advent of information technologies (IT).
As Figure 3 shows, the comparison of a city like Gwalior (India) (one of the most polluted cities in the world) to the reference data established by the WHO shows that Gwalior far exceeds the limit values established. The world's cleanest cities, such as Helsinki (Finland), in contrast, have values below the WHO's limits [9].  [39] and the World Health Organization [40].
These data attest to the urgent need for action in the most polluted cities. This level of atmospheric pollution intensifies climate change through environmental disasters such as acid rain and the deterioration of the ozone layer.

The Emergence of New Illnesses
Although there is still no consensus on the emergence of SARS-CoV-2 (the COVID-19 virus), it is widely believed that pollution and overpopulation have forced animals to live closer to urban cities, increasing the probability of outbreaks of new diseases, such as COVID-19. Unless we start using our resources consciously and efficiently so as not to waste them, more new diseases will emerge worldwide, creating new problems for our society. Given this problem of pollution and the ongoing COVID-19 pandemic, a significant focus of research is health and the influence of the environment on health. Environmental health is one of the topics that has awakened the most interest in recent years, following the exponential industrial development of this past century. One of every four illnesses is linked to pollution factors [44]. Based on this information, we must seek  [39] and the World Health Organization [40].
These data attest to the urgent need for action in the most polluted cities. This level of atmospheric pollution intensifies climate change through environmental disasters such as acid rain and the deterioration of the ozone layer.

The Emergence of New Illnesses
Although there is still no consensus on the emergence of SARS-CoV-2 (the COVID-19 virus), it is widely believed that pollution and overpopulation have forced animals to live closer to urban cities, increasing the probability of outbreaks of new diseases, such as COVID-19. Unless we start using our resources consciously and efficiently so as not to waste them, more new diseases will emerge worldwide, creating new problems for our society. Given this problem of pollution and the ongoing COVID-19 pandemic, a significant focus of research is health and the influence of the environment on health. Environmental health is one of the topics that has awakened the most interest in recent years, following the exponential industrial development of this past century. One of every four illnesses is linked to pollution factors [44]. Based on this information, we must seek solutions to promote a dizzyingly fast change in this trend. The WHO established the maximum levels for the main pollution sources permitted for human beings (Table 1). The pollution values currently that are currently being produced are much higher than the averages permitted. In the case of SO 2 , they can even reach a value 25 times higher in 10 min worldwide. If we continue at such extremely high levels, more illnesses could emerge, and current illnesses could worsen. Cities like Helsinki (Finland) are obtaining values far below the average accepted by the WHO, and are thus becoming international models. However, the global data show the urgent need to act in all of the most polluting cities worldwide, since atmospheric pollution is influencing climate change, natural catastrophes (e.g., acid rain), and deterioration of the ozone layer. The use of oil (kg per capita) continues to increase (Figure 4), even though the world's oil reserves have decreased dramatically [39,45,46]. If we observe the worldwide trend in GDP per unit of energy used from oil, we can confirm that oil forms part of the exponential growth in world energy consumption. Limitations on physical space involve changes in cities' sizes. Just as we limit the size of a metropolis, we must limit the exploitation of the amounts of energy and infrastructure resources that change the environment irreversibly.

Sulphur Dioxide (SO2)
20µg/m 3 average in 24 h 500µg/m 3 average in 10 min Source: developed by the authors from data collected by the WHO [44].
The pollution values currently that are currently being produced are much higher than the averages permitted. In the case of SO2, they can even reach a value 25 times higher in 10 min worldwide. If we continue at such extremely high levels, more illnesses could emerge, and current illnesses could worsen. Cities like Helsinki (Finland) are obtaining values far below the average accepted by the WHO, and are thus becoming international models. However, the global data show the urgent need to act in all of the most polluting cities worldwide, since atmospheric pollution is influencing climate change, natural catastrophes (e.g., acid rain), and deterioration of the ozone layer.

Squandering of Resources: Greater Expenditure on Energy Consumption (Almost 80% of World Consumption)
The use of oil (kg per capita) continues to increase (Figure 4), even though the world's oil reserves have decreased dramatically [39,45,46]. If we observe the worldwide trend in GDP per unit of energy used from oil, we can confirm that oil forms part of the exponential growth in world energy consumption. Limitations on physical space involve changes in cities' sizes. Just as we limit the size of a metropolis, we must limit the exploitation of the amounts of energy and infrastructure resources that change the environment irreversibly.

Proposed Solution
To solve these problems, this study analyzes the minimum factors needed to transform a conventional city into a Smart City. This approach is becoming compulsory for cities, since "the city is destined to grow indefinitely, and how to handle the problem of limiting its growth has not really been posed. Understanding growth as a natural, not a debatable, phenomenon is naturally

Proposed Solution
To solve these problems, this study analyzes the minimum factors needed to transform a conventional city into a Smart City. This approach is becoming compulsory for cities, since "the city is destined to grow indefinitely, and how to handle the problem of limiting its growth has not really been posed. Understanding growth as a natural, not a debatable, phenomenon is naturally complementary to limiting the field of inquiry on the city" [47] (p. 19). Since it is estimated that, by 2050, 70% of humanity will live in cities [47], today's cities must correct certain patterns of action, making improvement on four strategic issues their main focus [21]: -Economic competitiveness: attracting and achieving financing for new firms, conserving existing ones, and achieving improvement in economic development [48]; -Quality of life: improving health and security, new implications for healthcare, and changes in the way information is processed [44]; -Sustainability: energy efficiency, social change, greater economic prospects, and changes in resource and risk management [49]; -Mobility: efficiency in the means of transportation, traffic, and pollution, etc. [50].
This study stresses that a successful Smart City must contribute optimally to the improvement of economic competitiveness, quality of life, mobility, and sustainability by its government or public administration (a fifth strategic issue to consider), with greater regulation of hiring and the establishment of e-administration to make bureaucratic procedures quicker and easier. Smart Cities must also monitor sustainability and the environment (control of waste, energy efficiency, environmental management, etc.) [51]. Their services must contribute to the improvement of transportation, tourism, health, education, and culture, and they must draw on the advancements in data processing and the interconnection of networks to create an information and communication technology (ICT) network [52] dedicated to improving privacy and security. It is crucial to know how to manage data use to benefit society, and to evaluate transparency and privacy, while avoiding the fraudulent use of data. Cities must also measure the precision of the algorithms they use in setting up government policies: correcting for population bias, for example, or for policies that discriminate by geographic area [53]. Specifications should focus on the positive interventions of more inclusive policies.
AI, applied to the city, would considerably improve the issues of sustainability and efficiency involving problems of pollution and energy consumption [54]. The initial conception of AI for the planning of urban environments involves optimal resource planning, lowering costs using fewer of these resources (land, roadways, etc.), and optimizing the structure of all spaces and infrastructures. Cities such as London, Tokyo, and New York pioneered in bidding for strategic innovation projects to achieve processes of economic, social, and environmental cohesion [55][56][57].
Other cities, such as Hamburg and Bergen [58,59], have developed projects to remedy the deficiencies detected: projects which are currently global models of urban efficiency. In the case of Spain, a study by the University of Navarre [59] showed the world ranking of various Spanish cities ( Figure 5.) E.g. Madrid is 25th in a ranking headed at the international level by New York).   Based on these dimensions, we formed the notion of a new city, termed a Smart City. Smart Cities are the result of disruptive innovations with technological transformations (e.g., the implementation of 5G) of mobility, the economy, sustainability, and the public administration or Based on these dimensions, we formed the notion of a new city, termed a Smart City. Smart Cities are the result of disruptive innovations with technological transformations (e.g., the implementation of 5G) of mobility, the economy, sustainability, and the public administration or government itself to implement efficient urban development. The goal of Smart Cities is to provide optimal and efficient support for society's strategic activities through public-private collaboration mechanisms to set up such activities. A city is 'smart' if it has at least one initiative in the different areas of action [51].

Sample
To contrast each of the research questions in this study, we analyzed the different factors that determine the position of an average European city, taking the case of Granada-a city in the south of Spain-as a reference and target city for transformation into a Smart City. There is no optimal size at which a city can be transformed into a Smart City, since size depends on many conditions, including culture, diversity, social interaction, regional location, and country, etc. [30]. The country for analysis is Spain, one of Europe's largest economies. Furthermore, we chose a relatively homogeneous geographical, political, legal, and cultural space in order to minimize the impact of the variables that cannot be controlled in the empirical research [61]. Figure 7 represents the research methodology which was followed.
size at which a city can be transformed into a Smart City, since size depends on many conditions, including culture, diversity, social interaction, regional location, and country, etc. [30]. The country for analysis is Spain, one of Europe's largest economies. Furthermore, we chose a relatively homogeneous geographical, political, legal, and cultural space in order to minimize the impact of the variables that cannot be controlled in the empirical research [61]. Figure 7 represents the research methodology which was followed.

Measures
We analyzed various Spanish Smart cities (Madrid, Barcelona, Valencia, Malaga, and Santander), taking different international model Smart Cities (e.g., Tokyo, New York, London, Hamburg, Boston, Bergen, Toronto, and Singapore, etc.) as our starting point, in order to design the integrated dashboard and subsequently apply it to the average Spanish city chosen as our focus

Measures
We analyzed various Spanish Smart cities (Madrid, Barcelona, Valencia, Malaga, and Santander), taking different international model Smart Cities (e.g., Tokyo, New York, London, Hamburg, Boston, Bergen, Toronto, and Singapore, etc.) as our starting point, in order to design the integrated dashboard and subsequently apply it to the average Spanish city chosen as our focus (Granada). Due to the complexity of the data collection, we limited the study's scope to 42 primary indicators (see Table 2) obtained from different sources [62][63][64][65][66][67][68][69][70][71][72][73][74][75][76][77][78][79].  These indicators were classified based on the different dimensions ( Table 3) or areas of a city's overall action (governance, mobility, the environment, the economy, and quality of life) obtained by analyzing the indicators. The resulting dimensions aligned with the literature review previously performed (see Figure 5). These dimensions can then be divided into different factors for strategic action (Table 4). We used a star schema for the data analysis (Figure 8), analyzing the different indicators (DIM_INDICATOR), dimensions (DIM_GLOBAL), factors (DIM_FACTORS), and cities (DIM_CITY) in the study (Madrid, Barcelona, Valencia, Malaga, Santander, Granada). We used a Business Intelligence tool to develop the dashboard. Based on the review of the cities which have previously been considered Smart Cities, the literature review, and the table of facts mentioned above, we proposed the development of an integrated dashboard to drive the transformation of these cities. This integrated dashboard was created through detailed studies of different Smart Cities throughout the world, using some of their main initiatives for the production of secure ecosystems. Specifically, we took the models of different cities, such as Hamburg, with its Smart Mobility or Smartroad with the Kattwykbrucke (bridge); Boston, with its Smart Governance BOS (City of Boston) 311 incident reporting system; Bergen (and London), with the Smart Green Environment and I20 water project; London, with its Based on the review of the cities which have previously been considered Smart Cities, the literature review, and the table of facts mentioned above, we proposed the development of an integrated dashboard to drive the transformation of these cities. This integrated dashboard was created through detailed studies of different Smart Cities throughout the world, using some of their main initiatives for the production of secure ecosystems. Specifically, we took the models of different cities, such as Hamburg, with its Smart Mobility or Smartroad with the Kattwykbrucke (bridge); Boston, with its Smart Governance BOS (City of Boston) 311 incident reporting system; Bergen (and London), with the Smart Green Environment and I20 water project; London, with its application DataStore to network for a Smart Economy; Toronto, with its Toronto Civic 101 project for Smart People; and Singapore, with its Smart Living system to monitor patients' health in detail through Smart Health TeleRehab, a model which many countries have followed as a guide in the current pandemic. To these Smart Cities, our analysis adds the four main Spanish cities in the Smart City ranking (Madrid, Barcelona, Valencia, and Malaga) and another model Smart City in the Spanish Network of Smart Cities (Santander) as the basis for contrast. The resulting integrated dashboard (Table 5)-which encompasses dimensions, factors, and indicators-will be applied to evaluate each of these cities.  The table identifies the indicators, factors, and dimensions that any city needs to improve as the basis for designing our plan to implement the proposals of things that must be changed in order to make a city a Smart City. Numerous cities have insufficient ratios that they must develop strategically in order to become Smart Cities. These indicators are a starting point for the implementation of a strategic plan based on the deficiencies detected. We used a Likert scale from 1 to 6 for each indicator on the integrated dashboard; values of 1 and 2 indicate insufficient implementation, 3 and 4 indicate good implementation, and 5 and 6 indicate excellent implementation. The goal is to obtain scores for the results to show the deficient measures detected in each city that must be improved in order to achieve its transformation into a Smart City.

Data Analysis
To evaluate the degree to which a city fulfills the requirements to be a Smart City, we used a data dashboard as an information management tool in order to visually track, analyze, and display the key performance indicators, metrics, and data points. The dashboard was used to meet the specific needs or measurements to achieve a goal. This procedure enabled us to contrast visually the different cities analyzed. Within the International Standards Organization (ISO), ISO 37120 defines the 46 basic performance indicators that can and should be measured. We obtained information on 42 of these ( Table 5). By fulfilling these indicators in overall terms, cities are considered to be Smart Cities according to the different existing classifications. We also evaluated each item on the integrated dashboard on a scale from 1 to 6 (two items were eliminated due to unavailability of relevant information on some cities analyzed-citizen-government channels and public services for people with limited mobility-ultimately leaving 40 items). The data are obtained from different public sources available to citizens, such as the various cities' City Councils, open data published by the Spanish government, the official webpages of regional governments, local newspapers, and the Andalusian Multiterritorial Information System (SIMA) [48][49][50][51][52][53][54][55][56][57][58][59][60][61][62]. If the city is successful in each field (for example, obtains a 6 in all fields), it can obtain a maximum of 240 points. The evaluation is quite comprehensive, as it unifies criteria in order to define the strengths and weaknesses of each city. As the visual scorecard shows, the classification positions Madrid first, followed by Barcelona, Valencia, and Malaga. Santander is the lowest-classified in the Granada study, with a total of 24 points (for level 6), in contrast to Madrid's 108. We thus obtained a total score for each city that includes all 40 of the indicators studied (240 maximum points). This score enables us to evaluate each city (Figure 9). We were then able to establish comparative evaluations for the 40 measures for each city ( Figure 10). Madrid ranked highest, followed by Barcelona, Valencia, Malaga, and Santander. Granada received the lowest score. We were then able to establish comparative evaluations for the 40 measures for each city ( Figure 10). Madrid ranked highest, followed by Barcelona, Valencia, Malaga, and Santander. Granada received the lowest score. We were then able to establish comparative evaluations for the 40 measures for each city ( Figure 10). Madrid ranked highest, followed by Barcelona, Valencia, Malaga, and Santander. Granada received the lowest score. The following are some of the initiatives that these cities have implemented in order to become models that are considered to be Spanish examples: • Malaga stands out for its energy efficiency and pollution reduction project, which reduced CO2 emissions by 20% and earned the city the classification of Good (scores of 3 and 4).

•
Santander was one of the pioneers in developing a real-time traffic monitoring plan, with over 20,000 sensors distributed throughout the city.

•
Valencia was one of the first cities to develop a citizen services management platform with the project fiware VLCi. Valencia is improving its position in the ranking of Smart Cities. This The following are some of the initiatives that these cities have implemented in order to become models that are considered to be Spanish examples: • Malaga stands out for its energy efficiency and pollution reduction project, which reduced CO 2 emissions by 20% and earned the city the classification of Good (scores of 3 and 4).

•
Santander was one of the pioneers in developing a real-time traffic monitoring plan, with over 20,000 sensors distributed throughout the city.

•
Valencia was one of the first cities to develop a citizen services management platform with the project fiware VLCi. Valencia is improving its position in the ranking of Smart Cities. This platform integrates key citizen services that span five areas of the city: governance, mobility, environmental management, wellbeing, and tourism.

•
Barcelona uses a transportation network for a public bicycle service, intelligent devices in the home, and a real-time stock management system for available healthcare material, obtaining a score of Excellent. The city should, however, improve in some aspects which are classified as insufficient (e.g., little use of renewable energy in public transport, inefficient mobility (measured by traffic accidents per 1000 inhabitants), emergency citizen services, CO 2 emissions per capita, number of homeless people, and average emergency response time).

•
Most of Madrid's indicators are classified as Excellent, with a score of 6. Madrid should, however, improve in some issues that continue to be classified as insufficient (e.g., the approximate percentage of electric energy consumption (kwh), number of accidents per 1000 inhabitants, average daily concentration of NO 2 , security in the use of mobile devices, and average emergency response time).
Nevertheless, specific issues need improvement in each city ( Table 6). The Health Emergency areas for all of the cities are striking, as are the impact of mobility and the sustainable development of public transport. Other areas of concern are the levels of energy resource consumption and of pollution discharged into the atmosphere.  n

Quality of life
Universal Accessibility X Healthcare X X X Social Cohesion X X X Source: developed by the authors. Figure 11, below, displays the scores of each city by level.

Insufficient
Good Excellent Figure 11. Scores of each city by level. Source: developed by the authors.
As to the reference city in our study, Granada, we first compared it to the highest-ranked Spanish city, Madrid ( Figure 12). The results show that Granada receives a score of Excellent for some of the indicators present in Madrid (Madrid obtained a total of 18 indicators with a score of 6, and nine with a score of 5) vs. Granada (a total of four indicators with a score of 6, and three with a score of 5). At the other extreme, Madrid has five scores of Insufficient (three indicators with scores of 2, and two with scores of 1), whereas Granada has 23 (12 with scores of 2, and 11 with scores of 1) that must improved. The integrated dashboard developed enables us to focus on the strategies that must be considered for the transformation of Granada into a Smart City. As to the reference city in our study, Granada, we first compared it to the highest-ranked Spanish city, Madrid ( Figure 12). The results show that Granada receives a score of Excellent for some of the indicators present in Madrid (Madrid obtained a total of 18 indicators with a score of 6, and nine with a score of 5) vs. Granada (a total of four indicators with a score of 6, and three with a score of 5). At the other extreme, Madrid has five scores of Insufficient (three indicators with scores of 2, and two with scores of 1), whereas Granada has 23 (12 with scores of 2, and 11 with scores of 1) that must improved. The integrated dashboard developed enables us to focus on the strategies that must be considered for the transformation of Granada into a Smart City.

Measures Proposed to Overcome the Deficiencies Detected in the City of Granada
To improve Granada, we must take a series of strategic measures in governance, mobility, the environment, the economy, and quality of life, in order to enable the city's transformation into a Smart City (Table 7). These 23 indicators correspond to the research questions formulated in this study in order to enable Granada's transformation into a Smart City.

Measures Proposed to Overcome the Deficiencies Detected in the City of Granada
To improve Granada, we must take a series of strategic measures in governance, mobility, the environment, the economy, and quality of life, in order to enable the city's transformation into a Smart City (Table 7). These 23 indicators correspond to the research questions formulated in this study in order to enable Granada's transformation into a Smart City. The following are some notable deficiencies: • As to governance measures, the number of ambulances per 100,000 inhabitants is 1.64 [67], one of the worst figures for the region. We propose a personalized service for each patient, with full transparency of information and an app for the real-time management of the waiting time for each patient [67].

•
To foster government-citizen channels, Granada should work to create an e-government with participatory processes for citizens, elections accessible to its population, and e-administration to improve the quality of services. These proposals revolve around apps to enable citizens to participate in activities organized in the city, and information given in real time about municipal publications to exploit and optimize different areas of the city.

•
The city lacks a great deal of knowledge on almost any online procedure. Procedures are performed in person, which makes digital integration difficult for citizens. Granada must create an open data network to make data accessible to all of its citizens. Such a network would enable transparency in local government action.

•
As for mobility, Granada has about 30 km of bicycle paths [73]. The city's orography makes it difficult to implement a network that reaches the Albaycin and Sacromonte neighborhoods. Further, most bike lanes are on the periphery, which makes them hard to use. We thus propose the focusing of the network on leisure and not functional mobility as a means of transportation. We propose the restructuring of the areas of the city center to reduce traffic congestion and increase the network to just 54% of the city's metropolitan network.  [67,72].

•
A total of 15% of the population uses public bus transportation in Granada, whereas 32% use cars [75]. The bus system's 29 lines provide a complete but inefficient transportation network. Travelers are lost due to the saturation of users, especially with the large university population. We propose the development of online applications to manage urban traffic for visitors, and apps that register the type of visitor in order to adapt the city's services to visitors' habits and customs.

•
As for the environment, around 30% of Granada's waste is not treated as recyclable material [76]. We propose to raise urban awareness with brochures and information to improve these figures, and R&D projects to create smart networks that manage supply.

•
The quantity of green space shows that Granada has a total of one tree per five inhabitants, or a shortfall of nearly 30,000 trees [74] to achieve the approximately 15 m 2 that the WHO guidelines establish for green areas per inhabitant.

•
Granada has approximately three fire fighters per 10,000 inhabitants, well below the European recommendations of 10 per 10,000 [68].

•
As for economic measures, increasing the foreign resident population in the city is another key factor that Granada should foster from the perspective of multiculturalism. We propose the improvement of online reservations services, information at tourist access points, free WiFi, and secure data networks, etc.

•
As for quality of life through universal accessibility, we propose the hiring of more disabled personnel in order to achieve greater social integration. Teleassistance for the elderly and/or disabled improves hospital security for these patients. Sensors enable the monitoring of subjects' healthcare activity, providing information on their state of health in real time [77]. Another measure that we propose is the installation of more traffic lights with acoustical signals for the blind.

•
Decreasing the percentage of the population living in poverty: one third of Granada's population lives in poverty [78]. The city should bid to help entrepreneurs and firms access a commercial network that is more favorable to e-commerce and social networks. The city must also work to improve education, for example, by gradually changing the city's tough education system to adopt new teaching styles that involve students in critical thinking, creativity, and innovation. It would also be beneficial to update education for 21st-century students, and provide an education system with digital tools that form part of the change in technological trends, digital blackboards, and tablets, etc., by making students aware of how to use them well.

•
In the area of health, Granada must foster an increased birth rate in the population. The city's population pyramid is inverted, with around 22% of the population being over 65 years old [79].
Other health-related areas in need of improvement are hospitals and the quality of healthcare [80]. We propose virtual reality projects in order to control stress and psychological processes.
The system can use the waiting time for a virtual self-check to determine the patient's state prior to an appointment with a specialist. A real-time stock management system for healthcare material could also be implemented, like that in Barcelona.
The areas in which Granada receives below-average scores relate especially to quality of life (universal accessibility, social cohesion, and healthcare), the environment, and pollution levels. Based on a comparative analysis of the six Spanish cities, we can answer the research questions. To make Granada a Smart City, we recommend using the strategic technological measures from Table 7 to respond affirmatively to Research Questions 1, 2, 3, 4, and 5, and to improve the lowest-scoring strategic issues in public administration, mobility, the environment, the economy, and quality of life.

Discussion
At a general level, we are facing a process of dizzying change with terrible consequences for the environment and quality of life for present and future generations. Changing business activity has created a change in internal demand. To all of this, add the fall in demand for goods and services from other countries and a suspension of global value chains intensified by the pandemic [8,81]. At a macroeconomic level, government authorities have deployed a range of measures to palliate these effects, from granting bank credits to firms to providing economic aid for the most vulnerable households.
All of the dimensions to consider in a Smart City will be affected by this new reality. In facing these changes in the global trend (e.g., overpopulation, excess pollution and energy waste, pandemic), we propose actions to mitigate the negative effects of change. We must put into practice sustainable urban movements that contribute to the growth of local economies and improve the process of raising citizens' awareness of such an abrupt transformation.
This study has led to the creation of an integrated dashboard with governance, mobility, environmental, economic, and quality-of-life measures that can be applied to specific cities with an average of 250,000 inhabitants, in order to transform them into Smart Cities [63]. More specifically, this study has characterized the city of Granada (in the south of Spain) and identified the areas in which it needs to improve in order subsequently to design a plan to implement proposals to transform the city. The study generated improvement measures that can be applied to Granada to change its excellence ratio and make it into a Smart City on the level of Madrid, Barcelona, London, Bergen, Hamburg, Boston, Toronto, and Singapore.
In sum, all of the evidence aligns with our results. It suggests that these variables, taken together, combine to generate a process of change to achieve new models of resilient cities that can face and survive critical situations [82,83]. The analysis refers specifically to Granada, to the development of AI in cities' innovation and learning [6,31], and to obtaining a performance that complies with some of the SDGs [84] and will endure over time in order to avoid situations like the current one. Some of these goals focus on innovation and sustainability, such as: (a) fostering sustained, inclusive, sustainable economic growth, with full productive employment and decent work for all; (b) making cities inclusive, safe, resilient, and sustainable in terms of technology and business; (c) guaranteeing sustainable consumption and production patterns; and (d) developing resilient infrastructure, promoting inclusive and sustainable industrialization, and fostering innovation.

Conclusions, Implications, Limitations and Future Research Lines
This section synthesizes the theoretical and practical implications of this study. It also details the limitations and future research lines, and provides a brief conclusion from the study.

Theoretical Implications
This study enables us to advance Dynamic Capabilities Theory and Complexity Theory by fostering the measures of the integrated dashboard to permit cities to obtain a competitive advantage and to improve their current situation through innovation and collaboration with the different agents involved in urban development.
The study contributes to Dynamic Capabilities Theory by advancing the field of innovation, learning technology, and sustainable entrepreneurship.
The study also concludes that variations in dynamic capabilities are interrelated, due to firms' dynamic environments and the connections among the agents involved. That is, the development of dynamic capabilities is constantly influenced by the turbulence and change that can arise in the firm's environment. One key to the development of dynamic capabilities is thus the optimal interpretation of the opportunities and threats that emerge in a dynamic, complex, turbulent, and hostile environment. Such interpretation enables the city to readjust its knowledge and resource base substantially, in order to enable cities' survival and future sustainable economic performance. At the same time, the goal is to encourage the development of new products, processes, action plans, services, and business models that are innovative and difficult to imitate [16,85,86].
As for entrepreneurship, it is necessary to create resilient ecosystems that can face crises [9,14] in a sustainable way [11,12] by developing the concept of resilient entrepreneurship ecosystems.
Furthermore, the application of Complexity Theory leads us to argue that firms and governments must establish relationships with diverse agents, since the development of new ideas (to be transformed subsequently into products and services) is the fruit of collaborative effort [87]. Heterogeneous agents (market-based networks (clients, suppliers, competitors), localized learning networks (universities, commercial laboratories/R&D enterprises, private social organizations, not-for-profit research institutes, and other institutional bodies), and knowledge flows through networks) foster a network of networks, linking companies, institutions, inventors, communities, and technologies [18,19], and stimulating innovative research on AI to relate connectivities to sustainable performance in cities.

Practical Implications
The high levels of improvisation and the interaction of the above-mentioned heterogeneous agents studied here require the implementation of certain measures along the way, which we can consider to be a learning period during which to exploit the potential of new technologies in periods of crisis. One must focus on the government's advances in a three-dimensional area [88]-resilience, inclusion, and sustainability-to encourage the goals of sustainable development programmed for 2030 [89], which will enable more civic and adaptive harmony.
In the case of resilience, every city must adapt to new circumstances and do everything possible to survive through technological innovation or the application of AI. Drones could be used for communication, energy could be obtained from non-fossil fuels, images could be processed to help in the analysis of X-rays for faster diagnoses, new forms of surveillance could be adopted for security in cities, and projects could slow the spread of the SARS-CoV-2 virus through the crowdsourcing of data for real-time applications to monitor the location of positive COVID-19 patients and detect them early, etc. Blockchain is one of the most innovative cutting-edge technologies used in the response to Covid-19, with applications for firms, vulnerable people, and fake news, etc. [3]. Using big data to control traffic and mobility is the key to facing this type of pandemic. The application of AI in these initiatives can use predictive analyses in decision-making about specific behavior in order to help cities to get ahead of or avoid poor practice. Now more than ever, we must seek national digitalization that is 'people-focused', with greater knowledge of digital competences that advance society in a more humanistic framework.
In the area of microeconomics, firms must change their business strategies and value chains [1,81]. Firms will have to adopt primarily measures that permit them to focus on other types of work models that highlight more resilient supply chains that are rapid and transparent, in order to permit the following: evaluation of risk management plans when making decisions in times of emergency; the reactivation of multilateralism, in order to achieve better cooperation for greater consensus among countries and thus a truce in international investment flows [4]; the stimulation of digital transformation in industry in order to enable faster economic recovery for many firms, reducing costs and creating new jobs; the bid for innovation to face individual healthcare emergencies (R&D projects and investment to make the system more flexible using new instruments that encourage competitiveness and advance biomedical research, and the environmental and social management of Smart Cities and public health); the fostering of health information systems supported by ICTs in their various dimensions (e-health), combined with virtual and augmented reality systems; and the inclusion of e-commerce and telework in the city's business network in order to avoid urban agglomerations and decrease excessive traffic, contributing to technological inclusion and the optimization of energy consumption.
In terms of resilience, cities must develop resilient infrastructures that promote inclusive and sustainable industrialization and foster innovation. Cities and firms must be inclusive, secure, resilient, and sustainable [89]. Job inclusion is also necessary, based on the circumstances. Making work flexible through teleworking is key to an effective production model when facing a crisis. A new, more collaborative ecosystem and the creation of synergies are necessary to face today's less certain, more complex situations. Bidding for virtual meetings and the daily monitoring of employees' health, etc., is a necessary next step in workplace harmony and cohesion. Specifically, sustained, inclusive economic growth should be fostered, as well as full and productive employment, and decent work for all. In the area of sustainability, the new city will involve a much more conscious society which is more interconnected with firms, agents, and citizens [5]. Businesses and municipal governments should value the most humanitarian actions. Each business must adapt or reinvent its strategies to be global and comprehensive, and to contribute value in environmental terms [6,84]. Guidelines must be guaranteed for sustainable consumption and production.
This study visualizes and provides guidelines for improvement through the application and implementation of the algorithmic proposals inherent in the current conception of the use of machine learning, AI, or automatic learning at the city level in order to improve the measures implemented in public administration, mobility, the environment, the economy, and quality of life.

Limitations and Future Research Lines
Performing a project of this size involves the assessment of the need for complex processes of great scope. The study's strategic lines are not exclusive in determining what a Smart City is, but rather constitute a step toward the improvement of what one wishes to achieve. Similarly, the initial disbursement in endowing a city with technology infrastructures involves attracting investors to support that local economy. Promoting a complete communications network helps to achieve this goal by increasing universal accessibility and overcoming these deficiencies. A process of local leadership must develop a process to manage and stimulate the innovation ecosystems that bid for sustainability. Over 50% of the projects carried out in cities come from the environment and mobility [90].
Starting from real data from different sources [46,[48][49][50][51][52][53][54][55][56][57][58][59][60][61][62], we have created an integrated dashboard and applied it to the specific case of Granada, identifying 23 deficient indicators, so that different measures supported by technological innovation and AI can help the city to improve its level of Smartness in the national landscape. Other indicators can be analyzed in the future, and the study could be expanded to assess more cases at the national and international levels. We must stress that not all Smart measures proposed in a city involve the same use of AI or technological innovation, but we can indeed affirm that AI and digital and technological innovation bring noteworthy improvement in the sustainability and efficiency of the different dimensions in the urban environment, the reduction of pollution, and the production of significant energy savings in the city.

Conclusions
Technological and digital innovation and AI are crucial for the development of improvements in the public administration, mobility, environment, economy, and quality of life in cities. What is essential for achieving a transition from a conventional city to a Smart City is the consideration of the change in the trend from functional systems to more sustainable and intelligent ones. ICT infrastructures must be set up to optimize the financial structure [91]. Very diverse issues, which involve the environment, quality of services, and social behavior, etc., must be integrated.
All of these changes are achieved by engaging citizens and interested parties (universities, firms, and R&D centers, etc.). We must use a full series of technological strategies and tools to help open the field to decision-making that increases cities' perceived value. Analyzing and applying the field of AI is thus key to achieving disruptive change in all of the areas of the urban environment [92]. We must not forget to analyze the technological measures to be applied in different ways based on the local strengths and weaknesses reflected in the specific integrated dashboard and the different areas of each city, in order to make it a Smart City.