1 Introduction

The world of cities is changing and with it a wide range of quite trendy discourses and labels have emerged. From the computable or virtual city to the digital, the creative, the sustainable, the knowledge, the educating, the smart, the intelligent, the responsive, the ubiquitous or even the sentient city, all this labelling trend using the city metaphor is a result of a growing urbanization process and an increased global attention to build and develop competences to unravel emerging problems [1].

Cutting-edge information technologies (IT), entrepreneurship promotion, high capacity for learning and innovation, collective imagination of citizens in sha** and co-creating the city, and worldwide ecological balance are currently in the centre of public policy decisions and a flagship for the desired society. Co** with such challenges will lead to the veritable city, which Heynen [2] called Lutopia, as an allusion to how Leuven and many European cities will look in 2116.

But while waiting for the rise of Lutopia, the smart city tag is acting as a forerunner for these developments. In fact, when compared to other fashionable expressions, the smart city is at forefront of social discourse, policy making and research [1, 3, 4], with several cities around the globe already claiming to be the smartest ones [5, 6]. There is no agreement, however, among scholars on what smart city means, with different indexes being published to rank cities [5, 6].

Building on the ‘smart’ combination of these domains, the use of IT, which serve as enabler of new favourable behaviours and environments, is an essential part of the puzzle [7]. Given the range of topics covered under the smart city concept, it has become a challenge to find an adequate organizing taxonomy [1, 8]. Several studies have focused on the various dimensions of smart cities: (1) smart economy (competitiveness), smart people (social and human capital), smart governance (citizens’ participation), smart mobility (transport), smart environment (natural resources) and smart living (quality of life) [5, 6]; (2) urban openness, service innovation, partnerships formation, urban proactiveness, smart city infrastructure integration, smart city governance [9, 10]; (3) technology, people (creativity, diversity, and education), and institutions (governance and policy) [11]; (4) management and organizations, technology, governance, policy context, people and communities, economy, built infrastructure, and natural environment [12]; (5) architecture, governance, planning and management, facilities, data and knowledge, services, people, and environment [13]; (6) technology, organization, collaboration, and experiment [14]; (7) economy, people, governance, environment, living, mobility and data [15]; and (8) smart business, smart living, smart education, smart citizen, smart government, smart infrastructure, smart utility, smart mobility, and smart environment [16]. In turn, the IEEE smart cities initiative [17, 18] proposed the smart water, smart energy, smart mobility, smart food and agriculture, smart health, and smart waste domains. Among these frameworks, the one proposed by Giffinger et al. [5, 6] was widely quoted [19, 20] and was used to frame different reviews (e.g., [21,22,23,24]).

A wide spectrum of IT is being considered to improve the smartness of cities, including efficient communication networks (e.g., the fifth generation or 5G wireless networks), artificial intelligence, big data analytics, cloud computing and Internet of Things (IoT), among others [25, 26]. As a result, smart cities’ applications are supported in a wide range of components for data generation, acquisition, management, and processing [27]. Since the goals and needs of the users of smart cities applications are time and space dependent [28], context-awareness mechanisms are required for collecting and processing contextual information to allow the applications to intelligently consider the conditions of their users and respective environments [19, 29].

Context-aware was first introduced by Schilit and Theimer [30: 22] as a software feature that “adapts according to its location of use, the collection of nearby people and objects, as well as changes to those objects”. Other definitions emphasize the use of context information to provide relevant services, where relevancy depends on the characteristics of the users, the respective contexts and the tasks being performed [31]. A typical context-aware system has a dynamic nature and includes different activities that are repeated periodically, including the sensing of the users and environment (i.e., a sensing network is indispensable to obtaining accurate data) and the generation of proper reactions to operate the environment.

Since context-aware systems are self-adaptive, their development is always hard and complex. Furthermore, considering smart cities’ applications, the difficulty level increases, due to requirements such as the scalability of the sensing networks, the difficulty of applying context recognition approaches based on knowledge [32], or the need to guarantee the data privacy, integrity, and confidentiality [32, 20, 39] or identification of the conceptual dimensions and areas of smart cities based on bibliometric analysis [10]); (2) international standards (e.g., identification of relevant smart cities standards [48] or review of the standardisation activities that are being carried out by the United for Smart Sustainable Cities initiative [44]); (3) data analytics (e.g., the various data learning techniques being applied in smart cities [41] or big data applications to support urban environment, society, and sustainability [46]); (4) systems architectures (e.g., the contribution of the enterprise architecture towards digital transformation in smart cities [49]); (5) data security (e.g., identification of the barriers and hurdles in smart city and how these hurdles might be mitigated by the blockchain technology [45]); (6) IoT and data analytics (e.g., identification of key areas of application, current trends, data architectures, and ongoing challenges of the application of IoT and data analytics in smart cities [50]); (7) ontologies (e.g., how ontologies are being used to support smart city services [51]); (8) healthcare (e.g., relevant smart cities applications with impact in the provision of healthcare [42]); (9) energy efficiency (e.g., identification of the barriers to the progression to sustainable smart cities [52]), (10) citizenship (e.g., how public displays may foster citizen participation in addressing urban issues [23]); (11) smart city indicators (e.g., identification of potential indicators for implementing smart cities [22] or provision of a critical analysis of smart city assessment tools and their potential contribution to the evolution of the smart city movement [15]); (12) mobility (e.g., systematization of enabling technologies, current trends and solutions to support smart mobility [53] or smart city applications to facilitate the mobility of older adults in urban spaces [55]); and (13) age-friendly initiatives (e.g., conceptualization of the transport as one of the main domains of age-friendly cities as a core element of a smart, age-friendly ecosystem [47]). Looking specifically to context-awareness, it is possible to identify reviews that analyse context-aware technologies and their relation to IoT (e.g., systematization of the most relevant research projects and commercial solutions of the first decade of this century [35]), recommender systems (e.g., relevant developmental processes for the research of context-aware recommender systems [38]), mobile sensing (e.g., research directions within context awareness for mobile platforms, namely in terms of localization, movement and activity tracking, and environmental sensing [40]) or vehicular applications (e.g., existing context-aware applications used in vehicular networks [37]). Moreover, it was recently published a systematic map** aiming to investigate context recognition approaches applied in urban environments [32]. However, none of these reviews were focused on context-aware applications, which means that this study providing a comprehensive view of smart cities context-aware applications fills an existing gap of the literature reviews already published.

2 Methods

This systematic review followed the guidelines of the Preferred Reporting Items for Systematic Reviews and Meta-Analyses (PRISMA) [57]. To perform the systematic literature review, the authors defined a review protocol with explicit descriptions of the methods to be used and the steps to be taken [58]: (1) research questions; (2) search strategies; (3) inclusion and exclusion criteria; (4) screening procedures; (5) data extraction; (6) methodological quality assessment; and (7) synthesis and reporting.

2.1 Research questions

The objective of the systematic review reported by this article (i.e., to review and analyse the state-of-the-art of the context-aware applications supported by smart cities’ infrastructures) was decomposed into the following research questions:

  • RQ1—what is the state-of-the-art of the context-aware applications supported by smart cities’ infrastructures?

  • RQ2—what are the characteristics of the context-aware technologies being used?

  • RQ3—what is the maturity level of the applications being reported?

2.2 Search strategies

In terms of resources to be searched three databases were considered. IEEE Xplore, a technological database, was selected together with two general databases, Web of Science and Scopus. The choice of IEEE Xplore was motivated by its importance among researchers who work in computer science related domains, a key aspect of the smart cities’ developments. In turn, Web of Science and Scopus are the two major existing multidisciplinary databases, have a reputation of indexing quality peer reviewed research [59]. They have a high coverage of scientific journals and conference proceedings [60] and contain a significant number of references indexed by other databases, such as ACM Digital Library, Science Direct, SpringerLink or even IEEE Xplore. Moreover, Web of Science, Scopus and IEEE Xplore were considered, either alone, together or in conjunction with other databases, to support several reviews related to smart cities: Web of Science [15, 20, 46]; Scopus [10, 28]; Web of Science and Scopus [24, 49]: Scopus and IEEE Xplore [52]; IEEE Xplore and Science Direct [53]; Scopus, IEEE Xplore, ACM Digital Library, Science Direct and Springer Link [50]; Scopus, Web of Science, Science Direct and Springer Link [39]; IEEE Xplore, ACM Digital Library, and Science Direct [22, 23, 45]. Google Scholar was not considered since the aim was to retrieve peer reviewed research.

Boolean queries were prepared to include all the articles that have in their titles, abstract or keywords a reference to smart city (e.g., ‘SmartCity’, ‘Smartcity’, ‘Smart-city’, ‘Smart Cities’, ‘Smartcities’ or ‘Smart-cities’) together with a reference to context-awareness (i.e., at least one of the following expressions ‘context-aware’, ‘context aware’, ‘context-awareness’, or ‘context awareness’).

2.3 Inclusion and exclusion criteria

As inclusion criterion, the authors aimed to include peer-reviewed studies that report evidence of explicit use of context-aware technologies in the development of applications supported by smart cities’ infrastructures.

Articles were excluded if they: (1) did not have abstracts, (2) were not written in English; (3) their full texts were not available; (4) reported on reviews, surveys, or market studies; (5) were books, reported on workshops, or special issues announcements; (6) reported on studies that were not relevant for the objective of this systematic review; (7) reported on studies already covered by other articles (i.e., when two articles reported the same study in different venues, for instance, scientific journal and conference, the less mature one was excluded); and (8) were published after December 31, 2020.

2.4 Screening procedures

The selection of the articles to include in this systematic review was performed according to the following steps:

  • First step—the authors removed the duplicates, the references without abstract or authors and not written in English.

  • Second step—the authors assessed all titles and abstracts for relevance and those clearly not meeting the inclusion and exclusion criteria were removed.

  • Third step—the authors assessed the full text of the remaining articles against the outlined inclusion and exclusion criteria.

  • Fourth step—the authors performed a secondary analysis of the references of all the previous included articles to identify additional articles to be included.

Throughout this entire process, all articles were analysed by at least two authors and any disagreements between them were discussed and resolved by consensus.

From the screening procedures resulted a list of articles to be included in this systematic review (i.e., the included studies).

2.5 Data extraction

Concerning data extraction, the following information was registered in a data sheet prepared by the authors for each one of the included studies: (1) the demographics of the study (i.e., authors and respective affiliations, year and source of publication); (2) the scope of the study and the respective objectives; (3) the purpose of the smart city application being reported; (4) the adequacy of the context of the study; (5) the study research methods; (6) the findings of the study; (7) the limitations of the study; (8) details of the technologies being used, namely data sources, context-aware features and algorithms, or security mechanisms; and (9) the development stage of the application reported by the study.

2.6 Methodological quality assessment

In addition to general inclusion and exclusion criteria, the included studies were assessed against a set of six quality questions listed in Table 1, which were adopted and adjusted from other studies [61, 62]. Each question was answered according to a binary scale (i.e., 1 for Yes or 0 for No).

Table 1 Study quality assessment questions

A pilot test of three manuscripts was undertaken and results discussed to clarify potential differences regarding the understanding of process before moving to the assessment of the remaining studies. Then, for each study, at least two authors classify independently the six items of the methodological quality assessment scale. For each article, disagreements in any question of the scale were resolved by discussion until a consensus was reached.

2.7 Synthesis and reporting

Considering the demographics data, a synthesis of the characteristics of the included studies was prepared. This synthesis included: (1) the number of studies published in conference proceedings and scientific journals or as book chapters; (2) the distribution of the studies by year; (3) the trend of the publication rate, which was calculated using RMS Least Square Fit; and (4) the distribution of the studies by geographical areas, considering the affiliation of the first author.

Then, a table was prepared to synthesise the aims of the included studies. Moreover, to characterize the applications they were classified according to their purposes and contributions for the six domains of smart cities proposed by Giffinger et al. [5, 6]: (1) smart economy, competitiveness of the economy, including factors such as innovative spirit, entrepreneurship, ability to transform or integration in the international market; (2) smart people, social and human capital such as the level of qualification, fostering lifelong learning, ethnic plurality, and open mindedness; (3) smart governance, political strategies and perspectives, transparent governance, participation of the individuals in public life, and the quantity and quality of public services; (4) smart mobility, local, national, and international accessibility, and the availability of sustainable and safe transport systems; (5) smart environment, ecological awareness and sustainable management of natural resources; and (6) smart living, quality of life of the individuals, namely health conditions, cultural and education facilities, housing quality, and touristic attractiveness.

Since the existence of contextual information is the basis for the reasoning supporting context-awareness, the data gathering is an important issue of the proposed applications. Moreover, considering the different definitions of context-aware proposed by different authors [31, 63], in this systematic review, the adopted definition was the one proposed by Dey [63:6]: “A system is context-aware if it uses context to provide relevant information and/or services to the user, where relevancy depends on the user’s task”, which was useful to identify context-aware systems from the rest. In turn, to characterize the users’ interaction, three levels of context-awareness were considered [31]: (1) personalization (i.e., the users set their preferences and expectation to the system manually); (2) passive (i.e., the system constantly monitors the environment and offers the appropriate options to the users so they can take actions); and (3) active (i.e., the system continuously monitors the situation and acts autonomously). Moreover, Abowd et al. [31] distinguished between primary context attributes and secondary context attributes. Primary context attributes characterize both the individuals (e.g., identity, location, activity, and time) and the environment (e.g., weather conditions) [31, 35]. In turn, secondary context attributes can be inferred using data fusion operations [31]. Finally, context reasoning comprises different techniques to process and interpret the context attributes in the light of previous knowledge, so that actions can be taken by the applications according to the needs and preferences of their users.

Since personal data are used by context-aware applications, mechanisms to guarantee the data privacy, integrity, and confidentiality are required. Also, there is the need to use huge amount of data from different sources, which means that data accuracy, standardization and interoperability are key aspects [51].

Therefore, to characterize the context-aware technologies being used, the included studies were analysed in terms of types of the data sources, context-aware features, and data security and aggregation: (1) tabular syntheses were prepared for the types of the data sources, including continuous data gathered by the personal sensors that are gradually being pushed into the market, data acquired from the smart city infrastructures, data generated by human observation (e.g., crowdsensing), and smarty cities’ data repositories (e.g., tourism or public transports information); (2) based on the context-aware definitions, a narrative and tabular synthesis of the context-aware features was performed, which also included the algorithms (e.g., machine learning algorithms) required to process context attributes, to infer knowledge, and to make predictions so that correct actions can be performed [64]; and (3) a narrative synthesis was performed to identify technologies used by the included studies for providing data aggregation, security and interoperability.

In order to evaluate the maturity level of the solutions being reported, in addition to the analysis of the technologies being used, the authors distinguished the following development stages: (1) requirements—the study included the requirements’ elicitation, which could involve, in some cases, forms of co-design with potential end users; (2) design—the focus of the study was a general overview of the application architecture or some of the respective components; (3) technical testing—the study included results of a performance evaluation of the application or some of its components (e.g., the performance of a specific algorithm); (4) prototype testing—the study included a laboratory evaluation involving end users (e.g., a usability evaluation) of a minimally working version of the application being proposed; (5) pilot testing—the study included a real-world evaluation by end users in their daily context during a certain period; and (6) mature—the study included an application that has been tested by end users, amended in some way and that is ready for deployment. Additionally, an analysis of the aims and methods of the experiments involving end users was also performed.

3 Results

3.1 Selection of the studies

Figure 1 presents the PRISMA flowchart of the systematic review. The electronic literature search was performed in July 2021 and aimed to include articles published before December 31, 2020. A total of 631 articles were retrieved: (1) 302 from Scopus; (2) 174 from Web of Science; and (3) 155 from IEEE Xplorer.

Fig. 1
figure 1

PRISMA flowchart of the systematic review

The first step of the screening procedures yielded 288 articles, since 343 were removed because they (1) were duplicated (i.e., 300), (2) did not have abstracts (i.e., four), or (3) did not have authors and their abstracts were the contents of conference proceedings (i.e., 39).

During the second step, two references were excluded because they were retraction notes and another 251 were removed, because they (1) reported on reviews or surveys (i.e., 36), and (2) were not relevant for the objective of this systematic review (i.e., 215), since they were out of scope (e.g., [65,66,67,68,69,70,71]), or despite being focused on context-awareness and smart cities, did not present specific applications (e.g., [72,73,74,75,76,77,78].

Finally, after the full text analysis (i.e., the third step) eight articles were removed since they did not meet the inclusion and exclusion criteria. Furthermore, since, three studies were reported twice, three more articles were excluded [79,80,81] (i.e., the less mature report of each one of the three studies).

During the fourth step (i.e., a secondary analysis of the references of all the previous included articles) three more articles were identified.

Therefore, the final list of the retrieved articles contained 27 studies [82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108] that were included in this systematic review.

3.2 Demographics of the studies

In terms of publication types, 17 studies were published in conference proceedings [82,83,84, 87, 89,90,91,92, 94, 97,98,99,100, 102,103,104,105], nine studies were published in scientific journals [85, 86, 88, 93, 95, 96, 101, 107, 108] and one study was published as a book chapter [106].

Concerning the publication years, the included studies were published between 2012 (i.e., one study [82]) and 2020 (i.e., four studies [105,106,107,108]). Moreover, as shown by the diagram of Fig. 2, 74% of the studies (i.e., 20 studies [89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108]) were published since 2017 and there is a trend towards an increasing number of publications over the years.

Fig. 2
figure 2

Studies by year and publication rate (calculated using RMS least square fit)

Analysing the distribution of the included studies by geographical areas, Europe has the highest contribution (i.e., 15 studies), followed by Asia (i.e., eight studies). Comparatively, the remaining regions of the world have relatively residual contributions: together, North America, Africa and Oceania contributed with four studies. Moreover, only five studies involved the participation of multinational teams: (1) Canada and Saudi Arabia [82]; (2) Japan, German, and Russia [96]; (3) Sweden, Australia, and Russia [103]; (4) Pakistan and Saudi Arabia [106]; and (5) Algeria and France [107].

3.3 Methodological quality assessment

The results of the methodological quality assessment of the included studies are present in Fig. 3. All studies stated the aims and objectives of the conducted research (Q1. are the objectives of the study clearly identified?). In turn, only six studies explicitly included the methods that supported the research (Q3. does the research methods support the aims of the study?), and only five studies discuss the limitation of their results (Q6. Are limitations of the study discussed explicitly?). The results for the remainder three questions of the methodological quality assessment were 19 (Q5. is there a clear statement of the findings?), 14 (Q2. is the context of the study clearly stated?) and 12 (Q4. has the study an adequate description of the technologies being used?).

Fig. 3
figure 3

Methodological quality assessment of the included studies

3.4 Characteristics of the context-aware applications supported by smart cities’ infrastructures

Table 2 presents the purposes of the applications reported by the included studies. Some applications were developed aiming to contribute for the solution of a specific problem [84, 87, 93,94,95, 97, 99, 101, 103, 104]. However, other studies aimed the development of applications as examples of applicability of specific architectures, models, or components (e.g., context-aware architectures, queue management architectures, location-based components, social-aware components, or ontologies). Moreover, in general, the requirements of potential target users were not reported.

Table 2 Purposes of the applications presented by the included studies

Based on the analysis of the purposes of the applications being developed, the following application types were identified:

  • Public health, six studies [93, 95, 99, 104, 105, 108]: (1) two studies [93, 104] focused on the promotion of healthy lifestyles by develo** recommenders that make use of smart cities' infrastructures; and (2) four studies [95, 99, 105, 108] included context-aware applications that proactively notify citizens via mobile devices about air quality once they enter an area with air pollution that exceeds user defined thresholds.

  • Tourism experience, four studies [96,97,98, 102]: (1) audio augmented reality tour guides [97], (2) tourism recommendations [98]; (3) personalized stories of the places to visit [102]; and (4) estimates of the emotional status and satisfaction level of tourists during sightseeing [96].

  • Urban mobility, seven studies [82, 87,88,89, 92, 100, 101]: (1) navigation support [82, 87, 92]: (2) parking support [87, 101]; (3) tools to optimize the traffic management in the urban environments [89, 100]; and (4) management of logistic vehicles [88].

  • Active citizenship, four studies [83, 85, 86, 90]: (1) using social context to stimulate the creation of discussions between citizens on topics related to air quality [86]; (2) providing polling mechanisms to enable public municipalities to leverage citizen involvement in decision-making processes [83]; (3) providing citizens with mechanisms to report security events or crimes [85]; and (4) allowing the creation, execution of context-aware, multi-purpose participatory sensing campaigns, and analysis of the results [90].

  • Shop** experience, two studies [91, 106]: (1) using sensing and context-aware technologies to manage the customer flows in stores [91]; and (2) offering context-aware recommendations for smart markets.

  • Management of urban infrastructures, one study [103], which developed a reasoning model to give proactive recommendations for appropriately rescheduling the waste collection day in presence of problematic weather events.

  • Public alerts, one study [84], which provided public alerts based on the aggregation of various data sources, including social web feeds.

  • Recommenders, one study [94], which developed an application to provide different types of recommendations (e.g., hospital, gas station, restaurant, attraction, and cinema).

  • Smart environment, one study [107], which developed an application to provide a smart environment that can be adapted according to the users’ agendas and contextual information.

Therefore, considering the six smart cities’ domains defined by Giffinger et al. [5, 6], all the domains are present, except the smart people domain (Fig. 4): (1) smart economy, two studies [91, 106]; (2) smart governance, five studies [83,84,85,86, 90]; (3) smart mobility, seven studies [82, 87,88,89, 92, 100, 101]; (4) smart environment, seven studies [86, 92, 95, 99, 103, 105, 108]; and (5) smart living, 13 studies [92,93,94,95,96,97,98,99, 102, 104, 105, 107, 108]. It should be noted that six studies were mapped in more than one domain, according to the purposes of their applications (i.e., [86, 92, 95, 99, 105, 108]).

Fig. 4
figure 4

Distribution of the studies according to the smart city domains

3.5 Characteristics of the context-aware technologies being used

The data being used by automated and intelligent processes, including context-aware processes, come from different data sources. As shown in Fig. 5, personal sensors (i.e., sensors deployed in mobile devices and wearables) were used by 75% of the studies, while sensors deployed in the city were used by 54% of the studies. Only 33% of the studies used both personal sensors and sensors from the smart city infrastructure. Figure 5 is complemented by Tables 3 and 4, which respectively present the types of personal sensors and sensors deployed in the city that were identified in the included studies.

Fig. 5
figure 5

Percentage of the studies reporting the use of the personal sensors, sensors deployed in the city, and both personal sensors and sensors deployed in the city

Table 3 Types of personal sensors being used by the proposed applications
Table 4 Types of sensors deployed in the cities being used by the proposed applications

Moreover, four studies implemented crowdsourcing mechanisms (Table 5) and two-thirds of the studies reported the integration of data from smart city databases (Table 6), namely local repositories, repositories of data submitted by the citizens (e.g., tweets about incidents), environmental conditions and city routes.

Table 5 Studies using crowdsourcing
Table 6 Data from the smart cities’ databases

Looking at the technological details presented by the included studies, only six studies considered the concept of IoT, although just two studies referred the protocols being used.

Despite in some cases it is possible to customize the applications (i.e., personalization [31]), through the insertion of data (e.g., user profiles [84, 95, 98], preferences [93, 94, 104], health conditions [104], fixed location or fixed activity schedule [95]), all the applications of the included studies do not allow the execution of actions without the explicit consent of the user (i.e., they are passive applications [31]), which means they present suggestions, and it is up to the users to accept or not those suggestions.

Tables 7 and 8 present the different primary context attributes considered by the included studies using sensors of personal devices (i.e., Table 7) or sensors deployed in the city (i.e., Table 8).

Table 7 Primary context attributes acquired by personal sensors
Table 8 Primary context attributes acquired by sensors deployed in the city

Analysing the included studies, location and activity of the users are important context attributes. Except for the applications reported by [91, 94, 101,102,103, 105], in all other studies smartphones are used to locate or identify activities of the users. Moreover, in one study [103] a smart bin able to provide its location was considered and, in another study, [91], various location mechanisms are used to infer customers’ queues length, including video cameras or Bluetooth and GSM activities.

Additionally, some of the described applications also use secondary attributes, including speed [89], physical activity [96, 104], points of interest [90], stress [91], and tourists’ emotions [96].

Table 9 presents the type of data collected by the applications of the included studies to characterize the environment. Different measurements are considered, namely presence, number, speed and occupancy of vehicles, number of individuals, air quality, weather conditions, and luminosity.

Table 9 Data collected by the applications of the included studies to characterize the environment

The technical details of the context reasoning are scarce, since only six studies reported on the algorithms being used [89, 96, 99, 103, 106, 108]: (1) in [89] a Dynamic Bayesian Networks was used to deal with time-series data and uncertainties; (2) [96] reported on the development of a model for quantitatively estimating both emotion and satisfaction employing multiple modalities; (3) [99] reported on the development of an algorithm for the extraction of critical areas from air quality measurements; (4) [108] adopted a Deep Learning Neural Network approach for air quality prediction; (5) in [103] a reasoning algorithm decided whether it is more efficient to perform the day waste collection for a certain area or not; and (6) [106] reported on the development of an algorithm to dynamically calculate the relevant products considering the clients’ location and preferences.

Finally, data privacy, integrity, and confidentiality are considered by six studies [83, 85, 90, 92, 99, 104], but only three studies presented details (i.e., high-level details) of the security mechanisms [83, 85, 90].

In turn, mechanisms to aggregate data from different sensors and to guarantee the accuracy of these data were considered by three studies [85, 91, 99]. Also, three studies [85, 89, 104] considered the need of data interoperability. However, the technical reports related to both data accuracy and interoperability are scarce and vague. For instance, [104] referred to the intention to use Fast Healthcare Interoperability Resources (FHIR) for the interoperability of healthcare data, [89] referred to the intention of applying standards and develo** wrappers and adapters to enable flow of information between multiple applications, and [89] referred to the need to represent the data in a common machine-readable format such as Resource Description Framework (RDF) for data interoperability.

3.6 Maturity level of the applications being reported

Concerning the development stages of the included studies (Table 10), two studies were classified as requirements and four studies as design stage. The remainder studies were classified as technical testing (17 studies), prototype testing (three studies), and pilot testing (one study). None of the studies were classified as mature.

Table 10 Maturity level of the proposed solutions

As can be seen in Fig. 6, which presents the number of studies by maturity level over the years, the most mature solutions are not associated to more recent years (e.g., in 2021 only solutions classified as technical testing were identified).

Fig. 6
figure 6

Number of studies by maturity level over the years

Looking specifically to the studies that performed prototype or pilot testing involving end users, in [86] 19 participants (mainly university students) were recruited for an one day evaluation session to provide reactions and suggestions, [94] reported a survey based on a special purpose questionnaire and involving 50 random participants, in [97] a usability evaluation using System Usability Scale was conduct with 12 participants, and, finally, in [96] an experiment was conduct with 22 participants to evaluate the accuracy of the application.

4 Discussion

Concerning the first research question (i.e., the state-of-the-art of the context-aware applications supported by smart cities’ infrastructures), we may conclude that there is a current interest (i.e., 74% of the included studies were published since 2017) to develop applications to support public health, tourism experience, urban mobility, active citizenship, shop** experience, management of urban infrastructures, public alerts, recommenders, and smart environments. These purposes are also present in current smart city research, since urban mobility, healthcare, public safety, social, economic and environmental dimensions of sustainability, services’ efficiency and governance, namely participatory governance involving the citizens, are important topics of the smart city research agenda [10, 19, 20]. In fact, except smart people, all the remainder smart city domains defined by Giffinger et al. [5, 6] (i.e., smart economy, smart governance, smart mobility, smart environment, and smart living) are present in the included studies.

With respect to the characteristics of the context-aware technologies being used (i.e., the second research question), all the included studies have passive context-aware applications, some applications can be personalized, but there are no studies with active context-aware applications. In turn, in terms of primary context attributes, a group of studies implemented location recognition while another group implemented both the recognition of the location and the activity. Still in terms of primary context attributes, more than half of the studies considered the characterization of the environment (e.g., weather conditions or luminosity). In turn, secondary context attributes were also considered by some studies, including speed, physical activity, points of interest, stress, tourists’ emotions, or the number of individuals inside a store.

To support context-aware reasoning the included studies reported the use of data acquired from the smart city infrastructure, such as air quality, weather conditions, or light conditions, and data available in the smart city databases, namely repositories of citizens’ submitted data, environmental conditions, and city routes. On the other hand, sensors deployed in citizens mobile devices and wearables were used to acquire primary context attributes such as location and activity, and to infer secondary contributes such as physical activity or tourists’ emotions. Moreover, 15% of the studies reported the implementation of crowdsensing mechanisms to identify safety incidents, collect and share data related to the environmental conditions of the city, and to conduct participatory sensing campaigns and to determine the quality of the city routes.

In general, the studies failed to present evidence about how data privacy, integrity, and confidentiality are guaranteed, as well as how to deal with the lack of quality and accuracy of the gathered data and with the standardization, interoperability, and aggregation of heterogeneous data sources. Also, technical details of the sensing devices, communications networks, computing infrastructures and reasoning algorithms were, in general, poorly described.

Concerning the development stages of the applications being reported (i.e., the third research question), most of the studies included a performance evaluation of the respective applications or some of their components, such as a specific algorithm, while some of them were in an early development stage (i.e., requirements’ elicitation). Just 15% of the studies included a user-centred evaluation, either a minimally working version of the applications (i.e., [86, 94, 97]) or a real-world evaluation by end users in their daily context during a certain period (i.e., [96]). Therefore, this systematic review of the literature shows that the applications reported by the included studies have a low maturity level and are still far from consolidated solutions, which was also identified by other studies related to smart cities’ applications (e.g., [55]).

Given that smart cities are the subject of interest of countless researchers all over the world, it would be expected the inclusion of a larger number of studies. Twenty-seven studies represent a small number when compared to all the scientific production related to smart cities. One might think that this small number resulted from a narrow choice of the databases and keywords that were used. However, two of the databases being used, Scopus and Web of Science, are two well-reputed scientific indexing a huge number of scientific journals and conferencing proceedings that partially overlap publishers’ databases (e.g., ACM Digital Library, Science Direct, SpringerLink or even IEEE Xplore) and allow a significant coverage of academic publications. Moreover, in terms of the keywords of the search queries, although in a previous work [34] a different search approach was used (i.e., a broad database search of publications having in their title, abstract or keywords, variations of the expression ‘smart city’ followed by a manual search among of the retrieved studies of the ones related to smart cities applications using context-aware features), a similar number of studies were included (except for studies published in 2020 that were not included in our previous work). However, a limitation can be foreseen in terms of only using the expression ‘smart city’, since other expressions (e.g., ‘digital city’ or ‘intelligent city’) are also used in the scientific literature. Even so, considering bibliometric analysis (e.g., [10, 20]) or literature reviews related to the definitions of smart cities (e.g., [8]) the expression ‘smart city’ is the most used one. Therefore, in terms of academic research, the small number of included studies might indicate that the research effort to take advantage of the smart cities infrastructures to implement concrete context-aware applications is not very representative within smart cities’ research.

However, this result cannot lead to the interpretation that there is no fundamental research in terms of context-aware and smart cities since the analysis carried out focused on the implementation of concrete applications. In fact, a significant number of studies were excluded from the screening phases because despite being related to smart cities and context-awareness, their focus was not on the development of concrete applications. Therefore, the number of basic research studies related to context-awareness and smart cities may considerably differ from the number of studies included in this review. However, this issue deserves further analysis, since, contrary to other technologies (e.g., IoT, blockchain, fog computing, edge computing, data analytics or machine learning) it is not possible to identify terms related to context-awareness in certain reviews that compare the frequency of terms related to the development of smart cities (e.g., [10, 20]). Additionally, since this review was specifically focused on smart city applications, it did not include those studies focused on context-awareness applications whose development was not performed in the context of smart cities (e.g., their authors did not consider the concept smart city), but according to the perspectives of other research areas (e.g., mobile health [109]). Moreover, since the focus was the peer-reviewed scientific publications, it is not possible to draw conclusions about non-peer reviewed documents (e.g., technical reports or industrial solutions).

Smart cities developments are spread all over the world [8, 10, 19, 20, 27], although Europe stands out in terms of scientific productivity [10, 20]. Therefore, it is not surprising that Europe is the geographic area with the highest number of contributions in terms of included studies. However, it was not expected the low contribution of countries such as USA, People's Republic of China and India that are important contributors in terms of scientific publications related to smart cities [10, 20]. Additionally, the small number of studies involving multinational teams suggest that are not being created synergies between researchers based at different countries, namely based at different Member States of the European Union.

The framework proposed by Giffinger et al. [5, 6] was adequate to classify the included studies. Except for smart people, applications were identified for all other areas domains of this framework. The smart people topic is relevant within smart city research [54], and its absence might be explained by the fact that context related to smart people domain is probable more dependent of personal factors (e.g., the engagement of the individuals on life-long learning programs might be dependent of their occupation, lack of personal accomplishment and satisfaction or lack of confidence in learning) than sensing data gathered by the smart city infrastructures. In fact, Neirotti et al. [21] when considering the application domains relevant to the topic of urban development, divided these application domains into hard and soft domains, in accordance with the importance of IT as key enabling factors. According to this idea, which was followed by other authors (e.g., [8, 10]), environment, transport, mobility, and logistics, healthcare and public security are classified as hard domains, while education and culture, social inclusion and welfare, or economy are classified as soft domains [21]. In this respect, smart people and smart economy, the two less representative domains in this systematic review (i.e., the first with zero applications and the second with two applications), correspond to soft domains that are related to a lower importance of IT as enabling factors.

The context-aware features are in accordance with what is expected from the definitions of Abowd et al. [31] in terms passive context-aware applications that can be personalized, although active applications were not identified. Location recognition was the most representative primary context attribute, which was, in some studies considered together with activity recognition. This is in line with the findings presented by Nascimento et al. [32]. In turn, speed, physical activity, points of interest, stress, tourists’ emotions, or the number of individuals inside a store were identified as secondary context attributes.

Using sensors to constantly monitor individuals has the potential to put their privacy at risk, due to the communication of personal data [55]. Therefore, secure data transmission and the guarantee that the stored data would only be accessed by individuals who are authorized are important requirements [20]. A potential reason for this mismatch could be the fact that develo** smart city applications is quite complex, their requirements have not yet been comprehensively extracted and systematized, including different scenarios and concerns, leading to a great variability in terms of design, implementation and required technologies, while, seldom, the research groups, namely academic research groups, do not have specialized knowledge to deal with all that complexity and variability.

Another result that deserves special attention is the low maturity level of the applications together with some flaws of the included studies revealed by methodological quality assessment. Also, the included studies failed to evaluate the impact of the proposed applications on the potential users, since only 15% of the studies implemented user-centred evaluations. However, in these user-centred evaluations the number of participants was reduced, and the measured outcomes were insufficient to determine the impact of the application when used in a daily basis. The lack of user-centred evaluations or their poor methodological quality can be considered a major barrier for the dissemination of the applications being developed and the future work must pay special to this issue.

A possible explanation for the insufficient assessment of the developed applications is that the development and effective validation of smart cities applications requires not only various types of resources, as mentioned before, (e.g., technologies and physical or virtual infrastructures) but also a diversity of stakeholders. Despite the existence of models aiming to optimize smart city implementations (e.g., [56]), the coordination of these resources and stakeholders requires experience and a large amount of effort. Most probable, a significant number of researchers are not aware of these challenges when they start the development of smart city applications.

Although the authors tried, in methodological terms, to follow rigorous procedures in terms of the selection of the studies and the extraction of data, it is always possible to point out limitations about both the chosen keywords and the databases that were used in the research and even the judgement of the authors when screening the articles. Likewise, since a significant number of the included studies were published in conference proceedings, there will certainly be similar studies that have not been included because non-indexed conferences were not considered. Furthermore, the reliance solely on the English language may reduce the number of studies considered in the analysis. Finally, grey literature (e.g., technical reports or industrial solutions) was not considered in this review and that this can be seen as a gap of some significance, since it is assumed that there are many local field projects that are not published in scientific articles, but which will be reported in limited announcements (e.g., bulletins from city councils).

5 Conclusion

The study reported by this article aimed to review and analyse the state-of-the-art of the context-aware applications supported by smart cities’ infrastructures. Relevant contributions were identified aiming to provide applications related to public health, tourism experience, urban mobility, active citizenship, shop** experience, management of urban infrastructures, public alerts, recommenders, and smart environments. Moreover, it is foreseen that the number of studies related to the topic will increase in the future, since the research effort increased over the years and 74% of the studies were published since 2017. The included studies reported the use of different types of sensors are being used to acquire primary context attributes (i.e., location, activity, and environment) and secondary context attributes (i.e., speed, physical activity, points of interest, stress, and tourists’ emotions) to support passive context-aware applications.

Big data analytics, data privacy and security, authentication, data standardization and integration, computing and communication networks architectures and protocols (i.e., 5G networks), IoT implementation are, among others, important topics in the current smart city research. Surprisingly, these topics are almost absent in the set of the included studies. Moreover, technical details of both the sensors and the reasoning algorithms were poorly described by the included studies.

In general, the studies did not consider the requirements of the potential users, and only 15% studies presented experimental set-up to assess the proposed applications with end-users (although the respective experimental designs exhibited limitations). The remainder studies proposed concepts, architectures, and proof-of-concepts prototypes.

Therefore, based on the findings of this systematic literature, it is possible to conclude that there is a lack of maturity of the developed applications (evidenced by the lack of user-centred evaluations and the difficulty in integrating important technologies being developed for smart cities), which constitutes a major barrier to their dissemination. Since a considerable investment is being made to bring together smart city stakeholders, including industry, for creating market-ready solutions, the low maturity level of the developments is a major gap on the current research related to context-aware applications requiring smart cities’ infrastructures. This study evidences the poor incorporation in the specific topic of this systematic review, of the knowledge and solutions generated by the research related to other smart cities’ topics, as well as the lack of robust experimental set-ups to evaluate impact of the applications being developed.